@extends('layouts.app') @section('title', ($user->slug ?? $user->name) . ' — LoreKeepers') @section('content')
{{-- Profile Header --}}
@if($user->avatar) @else
{{ strtoupper(substr($user->name, 0, 1)) }}
@endif

{{ $user->slug ?? $user->name }}

@if($user->slug && $user->name !== $user->slug)

{{ $user->name }}

@endif @if($user->bio)

{{ $user->bio }}

@endif {{-- Stats --}}
{{ number_format($stats['total']) }}
Games
{{ number_format($stats['played']) }}
Played
{{ number_format($stats['playing']) }}
Playing
{{ number_format($stats['want_to_play']) }}
Want to Play
{{-- Follower / Following counts --}}
{{ $user->followers()->count() }}
Followers
{{ $user->following()->count() }}
Following
@auth @if(auth()->id() !== $user->id)
@endif @endauth View Library @auth @if(auth()->id() !== $user->id) Compare Libraries @endif @endauth
{{-- Top Genres --}} @if($genreStats->isNotEmpty())

Top Genres

@foreach($genreStats as $genre) {{ $genre->name }} {{ $genre->count }} @endforeach
@endif {{-- Recent Library --}} @if($allGames->isNotEmpty())

Recent Library

View all →
@foreach($allGames as $entry) @php $statusColors = [ 'playing' => 'bg-green-600', 'played' => 'bg-blue-600', 'want_to_play' => 'bg-yellow-600', 'on_hold' => 'bg-orange-600', 'dropped' => 'bg-red-700', ]; $statusLabels = [ 'playing' => 'Playing', 'played' => 'Played', 'want_to_play' => 'Want to Play', 'on_hold' => 'On Hold', 'dropped' => 'Dropped', ]; @endphp
{{ $statusLabels[$entry->status] ?? $entry->status }}
@endforeach
@else {{-- Empty state --}}

No games tracked yet

Start building your game library!

Browse Games
@endif
@endsection