@extends('layouts.school') @section('title', 'Timetable') @section('header', 'Class Timetable') @section('content')
| Time | @foreach($days as $day){{ ucfirst($day) }} | @endforeach
|---|---|
| {{ $period }} | @foreach($days as $day) @php $hour = substr($period, 0, 2); $key = $day . '_' . $hour; $entry = $timetable->get($key); @endphp
@if($entry)
{{ $entry->subject?->name ?? '—' }} @if($entry->teacher){{ $entry->teacher->name }} @endif @if($entry->room)Rm: {{ $entry->room }} @endif |
@endforeach