{{-- The game itself — shared by math_game/show (logged in) and math_game/guest. All the logic is in /js/math_game.js; 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.math') @if ($saveMode === 'student') @include('games._duel_modal') @endif @if ($saveMode !== 'guest' && \App\Services\GroupGames::canHost()) @include('games._group_game_modal') @endif @push('scripts') @endpush