@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $submitted = $test->attempts->filter->hasSubmitted()->sortBy([ fn ($a, $b) => $b->score <=> $a->score, fn ($a, $b) => $a->secondsTaken() <=> $b->secondsTaken(), ])->values(); $notSubmitted = $test->attempts->reject->hasSubmitted()->values(); $sortedAttempts = $submitted->concat($notSubmitted); $submittedCount = $submitted->count(); @endphp

{{ $test->title }}

{{ $test->schoolClass?->name ?? '—' }} · {{ $test->scheduledAtLocal()->format('M j, Y g:i A') }} – {{ $test->endsAtLocal()->format('g:i A') }} · {{ $test->duration_minutes }} min · {{ $test->question_count }} question(s) @if($test->hasClosed()) Closed @elseif($test->isOpen()) Open @endif

Back to Tests

Invited Applicants & Results

@forelse($sortedAttempts as $index => $attempt) @empty @endforelse
Rank Applicant Reference Status Score Time Taken
{{ $index < $submittedCount ? '#'.($index + 1) : '—' }} {{ $attempt->admissionApplication->applicantName() }} {{ $attempt->admissionApplication->reference }} @if($attempt->hasSubmitted()) Submitted @elseif($attempt->hasStarted()) In Progress @else Not Started @endif {{ $attempt->hasSubmitted() ? $attempt->score.' / '.$attempt->total_marks : '—' }} @if($attempt->secondsTaken() !== null) {{ gmdate('i:s', $attempt->secondsTaken()) }} @else — @endif
No applicants invited yet.
@csrf @if($shortlistable->isEmpty())

No un-invited applicants available right now (submitted, under review, or already scheduled elsewhere).

@else
@foreach($shortlistable as $application) @endforeach
@endif
@csrf @method('PUT')

Class can't be changed after a test is scheduled — delete and re-create it instead if you need a different class.