@extends('layouts.school') @section('title', 'Alumni') @section('header', 'Alumni & Graduates') @section('content')
@foreach (['all' => 'All', 'graduated' => 'Graduated', 'alumni' => 'Alumni'] as $key => $label) @php($active = request('status', 'all') === $key || ($key === 'all' && !request('status'))) @php($href = $key === 'all' ? route('school.students.alumni.index', request()->route('schoolId')) : route('school.students.alumni.index', array_merge([request()->route('schoolId')], ['status' => $key]))) {{ $label }} {{ $counts[$key] }} @endforeach
@if(request('status'))@endif
@forelse ($alumni as $alumnus) @empty @endforelse
Student Admission No Last Class Status Since Actions
@if($alumnus->photo_url) @else {{ $alumnus->initials }} @endif
{{ $alumnus->full_name }} {{ $alumnus->parent?->full_name ?? 'No parent linked' }}
{{ $alumnus->admission_no }} {{ $alumnus->class?->name ?? '—' }} {{ $alumnus->status_label }} {{ $alumnus->updated_at->format('d M Y') }}
@csrf
No alumni yet. Mark students as alumni or graduated from their profile.
{{ $alumni->links() }}
@endsection