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

Students

{{ $students->total() }} student{{ $students->total() === 1 ? '' : 's' }} found.

@if(request()->hasAny(['q', 'semester_id', 'intake', 'status'])) Clear @endif
@forelse($students as $s) @php $profile = $s->studentProfile; $p = $profile?->current_semester_id ? ($progressMap[$s->id . '_' . $profile->current_semester_id] ?? null) : null; @endphp @empty @endforelse
Student Intake Current semester Progress Status Action
@if($profile?->photo_path) @else {{ strtoupper(mb_substr($s->name, 0, 1)) }} @endif
{{ $s->name }}
{{ $profile?->student_id ?: '—' }}
{{ $profile?->intake ?: '—' }} @if($profile?->currentSemester) {{ $profile->currentSemester->name }} @else not set @endif @if($p && $p['total'] > 0)
{{ $p['percent'] }}%
{{ $p['passed'] }}/{{ $p['total'] }} @if($p['retry'] > 0)· {{ $p['retry'] }} retry@endif
@else — @endif
{{ $s->is_active ? 'Active' : 'Inactive' }} View
No students match your filters.
@if($students->hasPages()) @endif
@endsection