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