{{-- HERO --}}
Result Detail

{{ $exam->title }}

@if($exam->exam_type) {{ $exam->exam_type }} @endif @if($exam->subject && $exam->subject !== 'All Subjects') 📚 {{ $exam->subject }} @endif @if($exam->difficulty_level) {{ $exam->difficulty_level }} @endif {{ $passed ? '✓ Passed' : '✗ Failed' }}
{{-- SCORE SUMMARY --}}

Score Summary

Total Marks

{{ number_format($result->total_marks, 2) }}

Obtained

{{ number_format($result->obtained_marks, 2) }}

Percentage

0%

Pass Threshold

{{ $passPercentage }}%

{{-- Progress bar --}}
Your Score {{ number_format($result->percentage, 2) }}%
{{-- Breakdown --}}

Attempted

{{ $attempted }}

✓ Correct

{{ $correct }}

✗ Wrong

{{ $wrong }}

⊘ Skipped

{{ $notAnswered }}

{{-- Negative marking info --}} @if($exam->negative_enabled && $exam->negative_marking != 0)
⚠️ Negative marking: −{{ number_format($exam->negative_marking, 2) }} for each wrong answer
@endif
{{-- SUBJECT-WISE ANALYSIS --}} @if($subjectPerformance)

Performance Analysis

Subject Performance

{{ $subjectPerformance['subject'] }}

{{ $exam->exam_type }}

{{ $subjectPerformance['percentage'] }}%

@if($subjectPerformance['status'] === 'weak')

⚠️ Needs attention — practice more from this subject

@elseif($subjectPerformance['status'] === 'strong')

✓ Strong performance — keep it up!

@else

⚡ Average — there's room for improvement

@endif
@endif {{-- QUESTION REVIEW --}}

Question Review

Answer Breakdown

Review all {{ $totalQuestions }} questions with correct answers

@foreach($exam->questions as $index => $question) @php $response = $responses[$question->id] ?? null; $selectedOptionId = $response?->option_id; $correctOptionId = $question->options->where('is_correct', 1)->first()?->id; $questionState = !$selectedOptionId ? 'not_answered' : ($selectedOptionId === $correctOptionId ? 'correct' : 'wrong'); $isBilingual = ($exam->language ?? 'both') === 'both'; @endphp
{{-- Header --}}
Q{{ $index + 1 }} {{ $questionState === 'correct' ? '✓ Correct' : ($questionState === 'wrong' ? '✗ Wrong' : '⊘ Not Answered') }} @if($question->topic) {{ $question->topic }} @endif

{{ $question->question_text }}

@if($isBilingual && $question->question_text_en)

{{ $question->question_text_en }}

@endif
Marks {{ $questionState === 'correct' ? '+' . number_format($question->marks ?? 1, 2) : ($questionState === 'wrong' && $exam->negative_enabled ? '−' . number_format($exam->negative_marking, 2) : '0') }}
{{-- Options --}}
    @foreach($question->options as $optIndex => $option) @php $isSelected = $selectedOptionId === $option->id; $isCorrect = $option->id === $correctOptionId; @endphp
  • {{ chr(65 + $optIndex) }}
    {{ $option->option_text }}
    @if($isBilingual && $option->option_text_en)
    {{ $option->option_text_en }}
    @endif
    @if($isCorrect) Correct @endif @if($isSelected) Your Answer @endif
  • @endforeach
{{-- Explanation --}} @if($question->explanation || $question->explanation_en)

💡 Explanation

@if($question->explanation)

{{ $question->explanation }}

@endif @if($isBilingual && $question->explanation_en)

{{ $question->explanation_en }}

@endif
@endif
@endforeach