@if (! empty($schoolLogo)) @endif

{{ $schoolName }}

@if (! empty($schoolAddress))
{{ $schoolAddress }}
@endif

Examination Result Slip

Candidate{{ $takerName }}Exam{{ $testTitle }}
Submitted{{ $submittedAt ? $submittedAt->format('d M Y, H:i') : '—' }} Time spent{{ $timeSpent ? floor($timeSpent / 60).'m '.($timeSpent % 60).'s' : '—' }}
{{ rtrim(rtrim(number_format($percentage, 2), '0'), '.') }}%
{{ rtrim(rtrim(number_format($totalScore, 2), '0'), '.') }} / {{ $maxScore }} marks @if ($gradeLetter) · Grade {{ $gradeLetter }} @endif · Pass mark {{ $passMark }}%
@if ($status === 'grading') Awaiting Grading @else {{ $passed ? 'Passed' : 'Failed' }} @endif
@foreach ($items as $item) @endforeach
#QuestionMarksResult
{{ $item['n'] }} {{ \Illuminate\Support\Str::limit($item['question'] ?? '—', 90) }} {{ rtrim(rtrim(number_format($item['marks_earned'], 2), '0'), '.') }} / {{ $item['marks_max'] }} {{ ucfirst($item['state']) }}