Class Routine - {{ $student->student_name_english }}
@if($activeRoutineType) Active Type: {{ $activeRoutineType->name }} @else No Active Routine Type @endif
@foreach($timeSlots as $slot) @endforeach @foreach($daysOfWeek as $dayName) @foreach($timeSlots as $slot) @php $routine = $routineTable[$slot->id][$dayName] ?? null; @endphp @endforeach @endforeach
Day {{ $slot->name }}
{{ date('h:i A', strtotime($slot->start_time)) }}
{{ date('h:i A', strtotime($slot->end_time)) }}
{{ $dayName }} @if($routine)
{{ $routine->subject->name ?? 'N/A' }}
{{ $routine->teacher->name ?? 'N/A' }}
@else - @endif