Total Staff
{{ $summary['total_staff'] }}
@extends('reports._shell') @section('summary')
| Staff | Class | Grades / Subjects | Day | Time | Mode | Location | Students | Capacity | Avail. | Usage | Status |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $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. | |||||||||||