@extends('layouts.gamification') @section('title', __('Пробный ЕНТ')) @section('gami-active', 'trial_ent') {{-- TrialEntSignupController::student(): the sessions staff opened, with free seats per room, and the student's own upcoming sign-ups. --}} @section('gami-content')

{{ __('Запись на пробный ЕНТ') }}

@foreach ($mine as $m)
{{ __('Вы записаны') }}: {{ date('d.m.Y', strtotime($m->session_date)) }}, {{ substr($m->begin_time, 0, 5) }}–{{ substr($m->end_time, 0, 5) }} · {{ $m->classroom_name }}
@if ($m->can_cancel)
@csrf
@endif
@endforeach @forelse ($sessions as $s) @php($signedHere = in_array((int) $s->id, $mineSessionIds, true)) @php($signedThatDay = ! $signedHere && in_array($s->session_date, $mineDates, true))
{{ $s->title }} · {{ date('d.m.Y', strtotime($s->session_date)) }}, {{ substr($s->begin_time, 0, 5) }}–{{ substr($s->end_time, 0, 5) }}
@if ($s->note)

{{ $s->note }}

@endif
@foreach ($s->rooms as $r)
{{ $r->classroom_name }} · {{ __('свободно мест') }}: {{ $r->free }} @if (! $signedHere && ! $signedThatDay) @if ($r->free > 0)
@csrf
@else {{ __('мест нет') }} @endif @endif
@endforeach
@if ($signedThatDay)

{{ __('Вы уже записаны на другое время в этот день.') }}

@endif
@empty @if ($mine->isEmpty())
{{ __('Сейчас запись на пробный ЕНТ не открыта.') }}
@endif @endforelse @endsection