@extends('layouts.app') @section('title', 'Your Library vs ' . ($user->slug ?? $user->name) . ' — LoreKeepers') @section('content')
{{-- Header --}}
← {{ $user->slug ?? $user->name }}'s profile

Your Library vs {{ $user->slug ?? $user->name }}'s Library

{{-- Stats Row --}}
{{ $stats['both_count'] }}
In Common
{{ $stats['they_not_you'] }}
They Have, You Don't
{{ $stats['you_not_them'] }}
You Have, They Don't
@if($stats['avg_rating_diff'] !== null)
{{ $stats['avg_rating_diff'] }}
Avg Rating Diff
@else
—
Avg Rating Diff
@endif
{{-- Tabs --}}
{{-- Tab: In Common --}}
@if($both->isEmpty())
No games in common yet.
@else
@foreach($both as $item) @php $game = $item['game']; @endphp
@if($game->cover_url) {{ $game->title }} @else
@endif
{{ $game->title }}
You @if($item['myEntry']->rating) {{ $item['myEntry']->rating }} @else — @endif
Them @if($item['theirEntry']->rating) {{ $item['theirEntry']->rating }} @else — @endif
@endforeach
@endif
{{-- Tab: They Played, You Haven't --}}
@if($theyHaveNotYou->isEmpty())
No games here.
@else
@foreach($theyHaveNotYou as $entry)
@if($entry->game->cover_url) {{ $entry->game->title }} @else
@endif
{{ $entry->game->title }} @if($entry->rating)
{{ $entry->rating }}/10
@endif
@csrf
@endforeach
@endif
{{-- Tab: You Played, They Haven't --}}
@if($youHaveNotThem->isEmpty())
No games here.
@else
@foreach($youHaveNotThem as $entry)
@if($entry->game->cover_url) {{ $entry->game->title }} @else
@endif
{{ $entry->game->title }} @if($entry->rating)
{{ $entry->rating }}/10
@endif
@endforeach
@endif
@endsection