{{-- «Рейтинг игр» (GameLeaderboardController) — this week's game points, in a group or school-wide, over all games or one. Same look as leaderboard/index (the hero XP rating); the «Игры» tab stays lit. --}} @extends('layouts.gamification') @section('title', __('Рейтинг игр')) @section('gami-active', 'games') @push('styles') @endpush @section('gami-content') @php $isAll = $selectedGroupId === null; $scope = $isAll ? 'all' : (int) $selectedGroupId; $url = fn ($groupScope, $gameKey) => '/games_leaderboard.php?'.http_build_query(array_filter(['group_id' => $groupScope, 'game' => $gameKey])); @endphp
@endsection