@extends('layouts.app') @section('title', 'Students') @section('breadcrumb', 'Students') @section('content')

Students

{{ $school->name }} • {{ $session?->name ?? 'No active session' }}

@if(auth()->user()->isAdminLevel()) Register Student @endif
{{-- ── FILTERS ─────────────────────────────────────────────────────────── --}}
{{-- ── STUDENTS TABLE ──────────────────────────────────────────────────── --}}
{{ $students->total() }} student{{ $students->total() !== 1 ? 's' : '' }} found
@forelse($students as $i => $student) @empty @endforelse
# Student Name MCSS ID Gender Class / Arm Guardian Status Actions
{{ $students->firstItem() + $i }}
{{ strtoupper(substr($student->first_name,0,1).substr($student->last_name,0,1)) }}
{{ $student->full_name }}
@if($student->date_of_birth)
Age {{ $student->age }}
@endif
{{ $student->mcss_student_id }} {{ ucfirst($student->gender) }} {{ optional(optional($student->activeEnrollment)->classArm)->full_name ?? '—' }}
{{ $student->guardian_name ?? '—' }}
{{ $student->guardian_phone }}
{{ str_replace('_', ' ', $student->status) }}
@if(auth()->user()->isAdminLevel()) @endif
No students found. @if(auth()->user()->isAdminLevel()) Register the first student. @endif
@if($students->hasPages()) @endif
@endsection