@extends('layouts.examiner') @section('title', 'Candidate Result — ' . $candidate->reg_no) @section('content')

CANDIDATE RESULT STATUS

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
Candidate Detail
Print Result
{{-- Passport --}}
Passport
{{-- Summary table --}}
@if(config('cbt.jamb')) @endif
NAME {{ $candidate->full_name }}
REG. NO. {{ $candidate->reg_no }}
DEPARTMENT {{ optional($candidate->department)->name ?? '—' }}
PROGRAMME {{ optional($candidate->degree)->name ? optional($candidate->degree)->name . ' ' : '' }}{{ optional($candidate->programme)->name ?? '—' }}
SCORE {{ $score ?? '—' }}
JAMB SCORE {{ $candidate->jamb_score ?? '—' }}
AGGREGATE {{ $aggregate !== null ? number_format($aggregate, 2) : '—' }}
EXAMINATION DETAILS
CHECKED IN @if($attendance?->time) {{ \Carbon\Carbon::parse($attendance->time)->format('D, d M Y g:i A') }} @if($attendance->checked_by)  by {{ $attendance->checked_by }} @endif @else — @endif
START TIME {{ $exam?->started_at ? \Carbon\Carbon::parse($exam->started_at)->format('D, d M Y g:i A') : '—' }}
STOP TIME {{ $exam?->stopped_at ? \Carbon\Carbon::parse($exam->stopped_at)->format('D, d M Y g:i A') : '—' }}
REMAINING TIME {{ $exam ? $exam->remaining_time . ' Minute(s)' : '—' }}
STATUS @if($examStatus === 'active') Currently Logged In  
@csrf
@elseif($examStatus === 'Finished') Finished @else Yet to write the exams @endif
SYSTEM IP {{ $candidate->ip ?: '—' }}
SYSTEM HOSTNAME {{ $candidate->hostname ?: '—' }}
{{-- Questions table --}}
Questions
@if($answers->count()) @if($showAnswer) Hide Answers @else Show Answers @endif @endif
@if($showAnswer) @endif @forelse($answers as $i => $answer) @if($showAnswer) @endif @empty @endforelse @if($answers->count()) @endif
S/N QUESTION SELECTED OPTIONCORRECT ANSWERREMARK
{{ $i + 1 }} {{ optional($answer->question)->question ?? '—' }} {{ optional($answer->option)->name ?? '—' }}{{ optional(optional($answer->question)->correctOption)->name ?? '—' }} @if($answer->is_right) @else @endif
No answers recorded.
Correct answers: {{ $answers->where('is_right', true)->count() }} / {{ $answers->count() }}
@endsection