@extends('layouts.app') @section('title', 'Timetable') @push('styles') @endpush @section('content')

Weekly timetable

Academic year {{ now()->format('Y') }}

@foreach ($days as $index => $day) @php $dayEntries = $entries->where('day_of_week', $index); @endphp

{{ $day }}

@forelse ($dayEntries as $entry)
{{ $entry->subject }}
{{ \Carbon\Carbon::parse($entry->start_time)->format('h:i A') }} — {{ \Carbon\Carbon::parse($entry->end_time)->format('h:i A') }}
{{ $entry->batch->name ?? '' }}
{{ $entry->staff->full_name ?? '' }}
{{ $entry->room ?? '—' }}
@empty

No classes

@endforelse
@endforeach

Confirm Delete

Are you sure? This cannot be undone.

@csrf @method('DELETE')
@endsection