@extends('layouts.studentportalnav') @section('title', 'My Timetable') @section('content')
Weekly Academic Schedule

My Class Timetable

Automobile Engineering Academy • Student Academic Schedule 2026

Today's Schedule {{ $todayName ?? 'Today' }}
@forelse($todaySchedule ?? [] as $todayItem) @php $typeClass = 'theory'; $iconClass = 'fa-book-open'; if(strtolower($todayItem->type) == 'practical') { $typeClass = 'practical'; $iconClass = 'fa-flask'; } elseif(strtolower($todayItem->type) == 'workshop') { $typeClass = 'workshop'; $iconClass = 'fa-screwdriver-wrench'; } @endphp
{{ $todayItem->time_slot }} {{ $todayItem->type }}
{{ $todayItem->subject_name }}
@empty
No classes scheduled for today!

Take time to review your course materials or relax.

@endforelse
Timetable Legend & Session Types
Theory Session Practical Session Workshop Training Rest / Lunch Break
Please arrive at least 15 minutes before each session. 100% attendance is mandatory for practical and workshop modules.
@foreach($days as $day) @php $isToday = ($todayName ?? '') == $day; @endphp @endforeach @forelse($timeSlots as $slot) @php $isBreakRow = false; foreach($days as $d) { if(isset($schedule[$slot][$d]) && strtolower($schedule[$slot][$d]->type) == 'break') { $isBreakRow = true; break; } } @endphp @if($isBreakRow) @else @foreach($days as $day) @php $isToday = ($todayName ?? '') == $day; @endphp @endforeach @endif @empty @endforelse
Time {{ $day }} @if($isToday) TODAY @endif
{{ $slot }} LUNCH BREAK & REST TIME (12:30 PM - 01:30 PM)
{{ $slot }}
@if(isset($schedule[$slot][$day])) @php $cell = $schedule[$slot][$day]; $typeClass = 'theory'; $iconClass = 'fa-book-open'; if(strtolower($cell->type) == 'practical') { $typeClass = 'practical'; $iconClass = 'fa-flask'; } elseif(strtolower($cell->type) == 'workshop') { $typeClass = 'workshop'; $iconClass = 'fa-screwdriver-wrench'; } @endphp
{{ $cell->type }}
{{ $cell->subject_name }}
@else
@endif
No timetable data available for this week.
@endsection