@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $medals = ['🥇', '🥈', '🥉']; $periods = ['today' => __('Today'), 'week' => __('This Week'), 'month' => __('This Month'), 'all' => __('All Time')]; @endphp {{ __('Leaderboard') }} — {{ $game->title ? __($game->title) : __('Word Game') }} @if($brandStyle)@endif @vite(['resources/css/app.css', 'resources/js/app.js'])
{{ __('Back') }}

🏆 {{ __('Leaderboard') }}

@foreach($periods as $value => $label) {{ $label }} @endforeach
@forelse($entries as $index => $entry)
{{ $medals[$index] ?? '#'.($index + 1) }}

{{ $entry->playerName() }}

{{ __(':percent% accuracy', ['percent' => $entry->accuracy()]) }}

{{ number_format($entry->total_score) }}

@empty

{{ __('No scores yet — be the first to play!') }}

@endforelse
{{ __('PLAY NOW') }}