{{-- ── Header ── --}}
{{ $appSettings->app_name ?? config('app.name') }} Recruitment System
Examination Answer Sheet — Official Document
Roll Number
{{ $attempt->application?->roll_number ?? 'N/A' }}
Attempt #{{ $attempt->attempt_no }}
{{-- ── Candidate & Post Info ── --}}
Candidate Name {{ $attempt->user?->name }} CNIC {{ $attempt->user?->candidateProfile?->cnic ?? '—' }}
Post {{ $attempt->post?->title }} Post Code {{ $attempt->post?->code }}
BPS {{ $attempt->post?->bps }} Exam Date {{ $attempt->submitted_at?->format('d M Y, h:i A') }}
Total Questions {{ $attempt->total_questions }} Duration {{ round(($attempt->total_questions * config('exam.seconds_per_question')) / 60) }} minutes
{{-- ── Score Summary ── --}}
{{ $attempt->score }} / {{ $attempt->total_questions }}
Total Score
{{ $attempt->total_correct }}
Correct
{{ $attempt->total_wrong }}
Wrong
{{ $attempt->total_unanswered }}
Unanswered
Percentage Score: {{ $attempt->percentage_score }}%
{{-- ── Answer Sheet ── --}}
Answer Sheet — All {{ $attempt->answers->count() }} Questions
@php $order = 0; @endphp @foreach($orderedAnswers as $answer) @php $order++; $q = $answer->question; $selected = $answer->selected_answer; $correct = $q?->correct_answer; @endphp @endforeach
# Question Your Answer Correct Answer Result
{{ $order }} {{ $q?->question_text }} @if($selected) ({{ strtoupper($selected) }}) {{ $q?->{'option_' . $selected} }} @else @endif ({{ strtoupper($correct) }}) {{ $q?->{'option_' . $correct} }} @if($selected === null) Unanswered @elseif($answer->is_correct) Correct @else Wrong @endif