{{-- The vocabulary 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 vocab_game/guest. --}} @extends($isStudent ? 'layouts.gamification' : 'layouts.app') @section('title', __('Английские слова')) @section('gami-active', 'vocab') @section($isStudent ? 'gami-content' : 'content') @include('vocab_game._game', ['saveMode' => $isStudent ? 'student' : 'other', 'duel' => $duel]) @if ($isStudent) @php $langLabels = ['ru' => __('Русский'), 'kk' => __('Қазақша')]; $directionLabels = ['to_native' => __('EN → перевод'), 'to_en' => __('Перевод → EN'), 'mixed' => __('Вперемешку')]; $levelLabels = [1 => 'A1', 2 => 'A2', 3 => 'B1']; @endphp
| {{ __('Дата') }} | {{ __('Язык') }} | {{ __('Направление') }} | {{ __('Уровень') }} | {{ __('Время') }} | {{ __('Счёт') }} |
|---|---|---|---|---|---|
| {{ \Illuminate\Support\Carbon::parse($r->created_at)->format('d.m H:i') }} | {{ $langLabels[$r->lang] ?? $r->lang }} | {{ $directionLabels[$r->direction] ?? $r->direction }} | {{ $levelLabels[(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 }} |