{{ __('app.academics.timetable.title') }}

{{ __('app.academics.timetable.desc') }}

@can('timetables.print') @if ($class !== null && ($sections->isEmpty() || $sectionFilter !== '')) {{ __('app.actions.print') }} @endif @endcan
@if ($notice) {{ $notice }} @endif @foreach (['slot', 'section_id', 'academic_year_id', 'academic_class_id', 'delete'] as $errorKey) @if ($errors->has($errorKey)) {{ $errors->first($errorKey) }} @endif @endforeach
@foreach ($years as $option) @endforeach @foreach ($classes as $option) @endforeach @if ($sections->isNotEmpty()) @foreach ($sections as $section) @endforeach @endif
@if ($class !== null && $year !== null)

{{ $class->division->localizedName() }} — {{ $class->localizedName() }} @if ($year->isArchived()) · {{ __('app.academics.archived') }} @endif

@endif
@if ($showForm)
@foreach ($weekdays as $value => $key) @endforeach @foreach ($periods as $period) @endforeach @foreach ($classSubjects as $configured) @endforeach @foreach ($teachers as $teacher) @endforeach @foreach ($rooms as $room) @endforeach
@if ($subject_id !== '' && $teachers->isEmpty()) {{ __('app.academics.timetable.teacher_hint') }} {{ __('app.academics.timetable.open_assignments') }} @endif
{{ __('app.actions.cancel') }} {{ __('app.actions.save') }}
@endif @if ($class === null || ! $year) @elseif ($sections->isNotEmpty() && $sectionFilter === '') @else
@foreach ($weekdays as $value => $key) @endforeach @forelse ($periods as $period) @foreach ($weekdays as $value => $key) @php($entry = $grid[$period->id][$value] ?? null) @endforeach @empty @endforelse
{{ __('app.academics.fields.period') }} {{ __('app.enums.weekday.'.$key) }}
{{ $period->localizedName() }} {{ $period->timeRange() }} @if ($period->is_break) {{ __('app.academics.setup.break_label') }} @endif @if ($entry)

{{ $entry->subject->localizedName() }}

{{ $entry->teacher->name }}

@if ($entry->room)

{{ $entry->room->name }}

@endif @if (! $readOnly)
@can('timetables.edit') @endcan @can('timetables.delete') @endcan
@endif
@elseif (! $readOnly) @can('timetables.create') @endcan @else
—
@endif
@if (! $hasEntries && $periods->isNotEmpty() && ! $readOnly)

{{ __('app.academics.timetable.empty_hint') }}

@endif
@endif