{{-- /teacher/group_game.php?id= — one past group game's final standings (GroupGames::historyEntry()): place, student, team, score, prize. --}} @extends('layouts.app') @section('title', __('Результаты игры')) @section('content')

{{ __('Игры для группы') }}

{{ $game->title }}

{{ $game->group_name }} · {{ \Illuminate\Support\Carbon::parse($game->starts_at)->format('d.m.Y H:i') }} · {{ __('провёл(а)') }} {{ $game->host_name }} @if ($game->game !== 'quiz' && isset($game->settings['duration'])) · {{ (int) $game->settings['duration'] >= 60 ? ((int) $game->settings['duration'] / 60).__(' мин') : (int) $game->settings['duration'].__(' сек') }} @endif

@if (! empty($state['team_standings']))
@foreach ($state['team_standings'] as $i => $t) {{ $i === 0 && $t['score'] > 0 ? '👑 ' : '' }}{{ $t['name'] }}: {{ $t['score'] }} {{ __('в среднем') }} · {{ $t['members'] }} {{ __('уч.') }} @endforeach
@endif @if (empty($state['players']))
{{ __('В этой игре никто не играл.') }}
@else
@if ((int) $game->teams > 0)@endif @foreach ($state['players'] as $i => $p) @if ((int) $game->teams > 0)@endif @endforeach
#{{ __('Ученик') }}{{ __('Команда') }}{{ $game->game === 'quiz' ? __('Очки') : __('Верно') }} {{ $game->game === 'quiz' ? __('Верных ответов') : __('Ответов') }} {{ __('Приз') }}
{{ $i < 3 && $p['score'] > 0 ? ['🥇', '🥈', '🥉'][$i] : $i + 1 }} {{ $p['name'] }}{{ $p['team'] ? $teamNames[$p['team']] : '—' }}{{ $p['score'] }} {{ $game->game === 'quiz' ? $p['correct'].' / '.$p['total'] : $p['total'] }} {{ $p['prize'] ? '+'.$p['prize'].' 🪙' : '' }}
@endif @if ($canPay)
@endif
@endsection @if ($canPay) @push('scripts') @endpush @endif