@extends('layouts.school') @section('title', 'Examination Candidates') @section('header', 'Examination Candidates') @section('content')
@if ($exam)

{{ $exam->name }}

{{ $exam->classroom?->name ?? 'No class' }} ยท {{ number_format($candidates->count()) }} candidate(s) registered

@if ($enrolledStudents->isNotEmpty())
@csrf

Add Candidates ({{ $enrolledStudents->count() }} available from {{ $exam->classroom?->name }})

@foreach ($enrolledStudents as $student) @endforeach
@else
@if ($candidates->isEmpty()) No students available. All students in {{ $exam->classroom?->name }} are already registered or none exist. @else All students in {{ $exam->classroom?->name }} are registered as candidates. @endif
@endif

Registered Candidates

@forelse($candidates as $candidate) @empty @endforelse
Student Admission No Class Actions
{{ $candidate->student?->first_name }} {{ $candidate->student?->last_name }} {{ $candidate->student?->admission_no ?? 'โ€”' }} {{ $candidate->student?->classroom?->name ?? 'โ€”' }}
@csrf @method('DELETE')
No candidates registered yet.
@else

Select an examination to manage its candidates.

@endif @endsection