@extends('layouts.app') @php $pageTitle = match ($mode) { 'section' => 'Section Schedules', 'teacher' => 'Teacher Schedules', default => 'My Schedule', }; $formatHours = fn ($hours) => rtrim(rtrim(number_format((float) $hours, 2, '.', ''), '0'), '.'); $hasGrid = $canExport; $selectedSchoolYear = $schoolYear; $selectedTerm = $term; $assignedHours = (float) ($reportData['totalHours'] ?? 0); @endphp @section('content') @if (!$term)