@if($logoPath) @else
{{ strtoupper(substr($schoolName, 0, 1)) }}
@endif
{{ $schoolName }}
{{ $schoolTagline }}
{{ $schoolContact }}
{{ $timetable->name }}
{{ $timetable->schoolClass->name }} ({{ $timetable->schoolClass->gradeLevel->name ?? '' }})
{{ $timetable->term->name }} / {{ $timetable->academicYear->name }}
{{ $timetable->is_active ? 'Active' : 'Inactive' }}
@foreach($days as $day) @endforeach @for($period = 1; $period <= 12; $period++) @php $hasAny = false; foreach ($days as $day) { if ($entriesByDay->has($day) && $entriesByDay[$day]->where('period_number', $period)->first()) { $hasAny = true; break; } } @endphp @if($hasAny) @php $firstEntry = null; foreach ($days as $day) { $entry = $entriesByDay->has($day) ? $entriesByDay[$day]->where('period_number', $period)->first() : null; if ($entry && !$firstEntry) { $firstEntry = $entry; } } @endphp @foreach($days as $day) @php $entry = $entriesByDay->has($day) ? $entriesByDay[$day]->where('period_number', $period)->first() : null; @endphp @endforeach @endif @endfor
Period / Time{{ ucfirst($day) }}
Period {{ $period }} @if($firstEntry) {{ $firstEntry->start_time }} - {{ $firstEntry->end_time }} @endif @if($entry)
{{ $entry->subject->name ?? ucfirst($entry->type) }} @if($entry->teacher) {{ $entry->teacher->full_name }} @endif @if($entry->room) {{ $entry->room }} @endif @if($entry->type != 'lesson') {{ ucfirst($entry->type) }} @endif
@else
—
@endif