@extends('layouts.app') @section('title', 'Exam Results') @section('page-title', 'Results — ' . $exam->title) @section('content')
Back Candidates
Export to Excel & Email
{{-- Stats --}}
{{ $stats['total'] }}
Total Graded
{{ $stats['passed'] }}
Passed
{{ $stats['avg_pct'] }}%
Average Score
{{ round($stats['highest']) }}%
Highest Score
{{-- Pass rate bar --}} @if($stats['total'] > 0)
Pass Rate {{ $stats['total'] > 0 ? round(($stats['passed'] / $stats['total']) * 100) : 0 }}% ({{ $stats['passed'] }}/{{ $stats['total'] }})
@endif {{-- Results table --}}
Candidate Results
{{ $attempts->total() }} result(s)
@forelse($attempts as $att) @empty @endforelse
Candidate Attempt Score % Grade Status Time Taken Submitted
{{ $att->candidate->name }}
{{ $att->candidate->email }}
#{{ $att->attempt_number }} {{ $att->total_score }}/{{ $exam->total_marks }} {{ round($att->percentage, 1) }}% {{ $att->grade_label }} {{ $att->passed ? 'PASS' : 'FAIL' }} {{ $att->time_taken_seconds ? gmdate('H:i:s', $att->time_taken_seconds) : '—' }} {{ $att->submitted_at?->format('M j, Y H:i') }}
No graded results yet.
@if($attempts->hasPages())
{{ $attempts->links() }}
@endif
@endsection