{{-- The game itself — shared by mathlit_game/show (logged in) and mathlit_game/guest. All the logic is in /js/mathlit_game.js (questions are generated there); this is only the markup it drives. $saveMode: 'student' (rounds are saved), 'other' (logged in, another role — nothing saved) or 'guest' (nothing saved, nudged to log in). $duel: Duels::forView() when the page was opened via ?duel=ID (students only). --}} @push('styles') @endpush
{{-- Setup --}}

{{ __('🧠 Математическая грамотность') }}

{{ __('Подготовка к ЕНТ: закономерности, проценты и задачи из жизни.') }}

@include('games._helper_button', ['class' => 'btn-outline-secondary'])
{{ __('Тема') }}
{{ __('Сложность') }}
{{ __('Время') }}

@if ($saveMode === 'student') @endif
{{-- Playing --}}

@include('games._helper_button', ['class' => 'btn-link'])

{{-- Result --}}

{{ __('Результат') }}

{{ __('Стоит повторить:') }}

    {{ __('Все ответы верны!') }}

    @include('games._helper_button', ['class' => 'btn-outline-secondary ms-1'])

    @if ($saveMode === 'student') {{ __('Сохраняем результат…') }} @elseif ($saveMode === 'guest') {{ __('Войдите') }}{{ __(', чтобы ваши результаты сохранялись.') }} @else {{ __('Результаты сохраняются только для учеников.') }} @endif

    @include('games.helpers.mathlit') @if ($saveMode === 'student') @include('games._duel_modal') @endif @if ($saveMode !== 'guest' && \App\Services\GroupGames::canHost()) @include('games._group_game_modal') @endif @push('scripts') @endpush