{{-- The map game for a logged-in user. Students get it inside the gamification tabs, with their saved rounds below; any other role gets the plain site layout and can play, but nothing is saved. Guests get geo_game/guest. --}} @extends($isStudent ? 'layouts.gamification' : 'layouts.app') @section('title', __('Найди страну на карте')) @section('gami-active', 'geo') @section($isStudent ? 'gami-content' : 'content') @include('geo_game._game', ['saveMode' => $isStudent ? 'student' : 'other', 'duel' => $duel]) @if ($isStudent) @php $continentLabels = [ 'world' => __('Весь мир'), 'europe' => __('Европа'), 'asia' => __('Азия'), 'africa' => __('Африка'), 'north_america' => __('Северная Америка'), 'south_america' => __('Южная Америка'), 'oceania' => __('Австралия и Океания'), ]; $modeLabels = ['country' => __('Страны'), 'capital' => __('Столицы'), 'both' => __('Оба'), 'capital_of' => __('Назвать столицу'), 'number' => __('Угадай по номеру')]; $difficultyLabels = [1 => __('Лёгкий'), 2 => __('Средний'), 3 => __('Сложный')]; @endphp
| {{ __('Дата') }} | {{ __('Регион') }} | {{ __('Режим') }} | {{ __('Сложность') }} | {{ __('Время') }} | {{ __('Счёт') }} |
|---|---|---|---|---|---|
| {{ \Illuminate\Support\Carbon::parse($r->created_at)->format('d.m H:i') }} | {{ $continentLabels[$r->continent] ?? $r->continent }} | {{ $modeLabels[$r->mode] ?? $r->mode }} | {{ $difficultyLabels[(int) $r->difficulty] ?? $r->difficulty }} | {{ $r->duration === null ? '—' : ((int) $r->duration >= 60 ? ((int) $r->duration / 60).__(' мин') : (int) $r->duration.__(' сек')) }} | {{ (int) $r->score }}/{{ (int) $r->total }} |