@extends('layouts.app') @section('title', 'Students List') @php $pageQuery = array_filter($filters, fn ($v) => $v !== ''); $makeLink = fn ($key) => route('students.index', $pageQuery + ['sort' => $key, 'dir' => ($sort === $key && $dir === 'asc') ? 'desc' : 'asc']); $arrow = fn ($key) => $sort === $key ? ($dir === 'asc' ? '↑' : '↓') : '↕'; @endphp @section('content')

Students List

Active student roster

Admit Student
@foreach ([ ['label' => 'Active students', 'value' => $totals['active'], 'accent' => 'text-primary'], ['label' => 'Boarding', 'value' => $totals['boarding'], 'accent' => 'text-emerald-600'], ['label' => 'Day scholars', 'value' => $totals['day'], 'accent' => 'text-sky-600'], ['label' => 'Per class (avg)', 'value' => (int) round($totals['active'] / count(\App\Models\Student::FORMS)), 'accent' => 'text-amber-600'], ] as $c)
+
{{ $c['label'] }} {{ $c['value'] }}
@endforeach
@foreach ($byClass as $form => $c)
{{ $form }} {{ $c['total'] }} total {{ $c['boarding'] }} boarding · {{ $c['day'] }} day
@endforeach
@if ($pageQuery) @endif CSV KEMIS Export
@csrf
@forelse ($students as $s) @empty @endforelse
Adm No {{ $arrow('admission_no') }} Name {{ $arrow('name') }} Gender Class Category House Actions
{{ $s->admission_no }}
{{ $s->full_name }} UPI {{ $s->upi }}
{{ $s->gender }} {{ $s->class_name }} {{ $s->stream }} {{ $s->category }} {{ $s->house }}
No students match your filters.
@foreach ($students as $s) @endforeach
{{ $students->links('pagination::tailwind') }}
@endsection @push('scripts') @endpush