@include('shared.alerts')
{{ __('Team') }}
{{ __('School') }}
{{ optional($team->school)->name }}
{{ __('Published') }}
{{ __('Course') }}
{{ optional($team->course)->name }}
{{ __('Name') }}
{{ $team->name }}
{{ __('Start') }}
{{ $team->start->format('Y-m-d H:i') }}
{{ __('Theory teacher') }}
{{ optional($team->theoryTeacher)->name }}
{{ __('Driving teachers') }}
@foreach ($team->teachers as $teacher) {{ $teacher->name }}
@endforeach
{{ __('Students') }}
@if ($team->students->isNotEmpty()) @foreach($team->students as $user) @endforeach
{{ __('Name') }} {{ __('E-mail') }} {{ __('Mobile') }} {{ __('Birthday') }}
@if ($user->avatar) @else @endif {{ $user->name }} {{ $user->email }} {{ $user->mobile }} {{ $user->birthday ? $user->birthday->format('d/m/y') : '' }}
@else {{ __('No students assigned') }} @endif
{{ __('Modules') }}
@can('update', $team) {{ __('New module') }} @endcan @foreach ($team->modules as $module) @endforeach
{{ __('Name') }} {{ __('Start') }} {{ __('End') }} {{ __('Students') }}
{{ $module->name }} {{ $module->start ? $module->start->format('Y-m-d H:i') : '?' }} {{ $module->end ? $module->end->format('Y-m-d H:i') : '?' }} {{ $module->students->count() === 1 ? $module->students->first()->name : $module->students->count() }} @can('update', $team)
@method('DELETE') @csrf
@endcan