@extends('reports._shell') @section('summary')
Total Staff
{{ $summary['total_staff'] }}
Active Classes
{{ $summary['total_active_classes'] }}
Active Students
{{ $summary['total_active_students'] }}
Total Capacity
{{ $summary['total_capacity'] }}
Available Seats
{{ $summary['available_seats'] }}
Full
{{ $summary['full_classes'] }}
Empty
{{ $summary['classes_no_students'] }}
Data Issues
{{ $summary['capacity_data_issues'] }}
@endsection @section('table') @foreach($rows as $r) @endforeach @if(empty($rows)) @endif
StaffClassGrades / Subjects DayTimeModeLocation StudentsCapacityAvail. UsageStatus
{{ $r['staff_name'] ?? '—' }}
{{ $r['staff_code'] ?? '' }}
{{ $r['class_code'] }} @foreach($r['grades'] as $g) {{ $g }}@if(!$loop->last), @endif @endforeach
{{ implode(', ', $r['subjects']) }}
{{ $r['day'] }} {{ $r['start_time'] }}–{{ $r['end_time'] }} {{ $r['study_mode'] ?? '—' }} {{ $r['location'] ?? '—' }} {{ $r['active_students'] }} {{ $r['capacity'] ?? '∞' }} {{ $r['available_seats'] ?? '—' }} {{ $r['capacity_usage'] !== null ? $r['capacity_usage'] . '%' : '—' }} @php $s = $r['capacity_status']; $pill = $s === 'available' ? 'ok' : ($s === 'full' ? 'warn' : ($s === 'data_issue' ? 'err' : ($s === 'no_students' ? 'warn' : 'ok'))); $label = $s === 'data_issue' ? 'Data issue' : ucwords(str_replace('_', ' ', $s)); @endphp {{ $label }}
No records match the current filters.
@endsection