@extends('layouts.app') @php $pageTitle = 'Dashboard'; $pageNavAlign = 'left'; $percent = $completionPercent ?? 0; $meterState = $percent >= 100 ? 'good' : ($percent > 0 ? 'warning' : 'flat'); $attentionItems = $needsAttention['items'] ?? []; $attentionTotal = $needsAttention['total'] ?? 0; @endphp @section('page-nav') Grade 11 Grade 12 @endsection @section('content')
{{ strtoupper($selectedGradeLabel ?? 'Grade 11') }} OVERVIEW • {{ $activeSchoolYear?->name ?? 'No School Year' }} • {{ $activeSchoolTerm?->name ?? 'No Term' }}
Needs Attention {{ $attentionTotal }} item{{ $attentionTotal === 1 ? '' : 's' }}
@forelse ($attentionItems as $item) {{ $item['title'] }} {{ $item['message'] }} @empty
Nothing needs attention right now.
@endforelse
@if ($attentionTotal > count($attentionItems)) @endif
{{ $percent }}%
Completion
{{ $totalSections ?? 0 }}
Sections
{{ $totalTeachers ?? 0 }}
Teachers
{{ $totalRooms ?? 0 }}
Rooms Used
{{ $totalSchedules ?? 0 }}
Classes
Schedule Completion
{{ $percent }}%
complete
{{ $completedSections ?? 0 }} of {{ $totalSections ?? 0 }} sections fully scheduled @if (($incompleteSchedules ?? 0) > 0) · {{ $incompleteSchedules }} incomplete @endif
Grade 11 vs Grade 12
Completion across the whole school.
System Status
@if ($readinessSummary) View full breakdown @endif
Pathways
{{ ($configuredPathwayCount ?? 0) > 0 ? $configuredPathwayCount . ' configured' : 'None yet' }}
Shift Setup
{{ ($configuredShiftCount ?? 0) > 0 ? $configuredShiftCount . ' in use' : 'None yet' }}
Teacher Coverage
{{ $teacherAssignmentCoverage }} / {{ $teachableSubjectsCount }} subjects
Teacher Load
{{ $unassignedTeacherCount > 0 ? $unassignedTeacherCount . ' idle' : 'All assigned' }}
@if ($readinessSummary)
Subject Coverage
{{ $readinessSummary['subjects_no_teacher'] > 0 ? $readinessSummary['subjects_no_teacher'] . ' uncovered' : 'All covered' }}
Specialized Rooms
{{ $readinessSummary['room_shortfall'] ? 'Short on capacity' : 'Sufficient' }}
Grid Capacity
{{ $readinessSummary['sections_grid_blocked'] > 0 ? $readinessSummary['sections_grid_blocked'] . ' blocked' : 'All schedulable' }}
@endif
@endsection @push('scripts') @endpush