@extends('layouts.student') @section('title', 'Exam result') @section('content')
Back to my exams

{{ $attempt->exam->display_name }}

Attempt {{ $attempt->attempt_number }} · {{ $attempt->status === \App\Enums\AttemptStatus::Expired ? 'time expired' : 'completed' }} {{ $attempt->completed_at?->format('d M Y H:i') }}
@if ($attempt->status === \App\Enums\AttemptStatus::Expired)
The exam time ran out, so the attempt was submitted automatically. Unanswered questions scored zero.
@endif
Score
{{ $result['score'] }} / {{ $result['total_points'] }}
Percentage
{{ rtrim(rtrim(number_format($result['percentage'], 2), '0'), '.') }}%
{{ $result['passed'] ? 'Passed' : 'Not passed' }}
Passing percentage: {{ rtrim(rtrim(number_format($result['passing_percentage'], 2), '0'), '.') }}%
Summary
{{ $attempt->exam->display_name }} {{ $attempt->attempt_number }} {{ $attempt->completed_at?->format('d M Y H:i') }} {{ $result['questions'] }} {{ $result['answered'] }} {{ $result['unanswered'] }} (scored zero) @if ($result['skipped'] > 0) {{-- Answered "no object found": recorded responses, not gaps. --}} {{ $result['skipped'] }} (no object found) @endif {{ $result['correct'] }} {{ $result['incorrect'] }} {{ $result['total_points'] }} {{ $result['score'] }}
@endsection