{{-- /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->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']))| # | {{ __('Ученик') }} | @if ((int) $game->teams > 0){{ __('Команда') }} | @endif{{ $game->game === 'quiz' ? __('Очки') : __('Верно') }} | {{ $game->game === 'quiz' ? __('Верных ответов') : __('Ответов') }} | {{ __('Приз') }} |
|---|---|---|---|---|---|
| {{ $i < 3 && $p['score'] > 0 ? ['🥇', '🥈', '🥉'][$i] : $i + 1 }} | {{ $p['name'] }} | @if ((int) $game->teams > 0){{ $p['team'] ? $teamNames[$p['team']] : '—' }} | @endif{{ $p['score'] }} | {{ $game->game === 'quiz' ? $p['correct'].' / '.$p['total'] : $p['total'] }} | {{ $p['prize'] ? '+'.$p['prize'].' 🪙' : '' }} |