@php $summary = $result['summary']; $testInfo = $result['test']; $percentage = $summary['percentage']; $passed = $percentage >= 40; $scoreColor = $percentage >= 75 ? 'green' : ($percentage >= 40 ? 'yellow' : 'red'); @endphp
{{-- HERO --}}

Demo Test Result

{{ $testInfo['title'] }}

@if(!empty($testInfo['exam_type'])) {{ $testInfo['exam_type'] }} @endif @if(!empty($testInfo['subject']) && $testInfo['subject'] !== 'All Subjects') {{ $testInfo['subject'] }} @endif {{ $passed ? '✓ Passed' : '✗ Failed' }}
{{ $percentage }}% Score
{{-- QUICK STATS --}}

Total Q

{{ $summary['total_questions'] }}

Correct

{{ $summary['correct'] }}

Wrong

{{ $summary['wrong'] }}

Skipped

{{ $summary['not_attempted'] }}

{{-- TOPIC PERFORMANCE --}} @if(!empty($result['topic_stats']) && count($result['topic_stats']) > 0)

Performance Analysis

Topic-wise Breakdown

Ye analysis ScoreLab ka core hai — dekho kis topic mein weak ho

@foreach($result['topic_stats'] as $topic) @php $tColor = $topic['status'] === 'strong' ? 'green' : ($topic['status'] === 'average' ? 'yellow' : 'red'); $tIcon = $topic['status'] === 'strong' ? '✓' : ($topic['status'] === 'average' ? '~' : '!'); @endphp
{{ $tIcon }}

{{ $topic['topic'] }}

{{ $topic['subject'] }} · {{ $topic['total'] }} questions

{{ $topic['percentage'] }}%
@endforeach
@endif {{-- DIFFICULTY BREAKDOWN --}} @if(!empty($result['difficulty_stats']))

Difficulty Analysis

Accuracy by Difficulty

@foreach(['Easy', 'Medium', 'Hard'] as $level) @php $d = $result['difficulty_stats'][$level] ?? null; $dColor = strtolower($level); @endphp @if($d && $d['total'] > 0)
{{ $level }}

{{ $d['accuracy'] }}%

{{ $d['correct'] }} / {{ $d['total'] }} correct

@endif @endforeach
@endif {{-- WEAK & STRONG --}} @if((!empty($result['weak_topics']) && count($result['weak_topics']) > 0) || (!empty($result['strong_topics']) && count($result['strong_topics']) > 0))
@if(!empty($result['weak_topics']) && count($result['weak_topics']) > 0)

⚠️ Focus Areas

Weak Topics

@foreach($result['weak_topics'] as $w)
{{ $w['topic'] }} {{ $w['percentage'] }}%
@endforeach
@endif @if(!empty($result['strong_topics']) && count($result['strong_topics']) > 0)

✓ Strengths

Strong Topics

@foreach($result['strong_topics'] as $s)
{{ $s['topic'] }} {{ $s['percentage'] }}%
@endforeach
@endif
@endif {{-- QUESTION REVIEW --}}

Question Review

Answers Breakdown

@foreach($result['rows'] as $index => $row) @php $state = !$row['is_attempted'] ? 'skipped' : ($row['is_correct'] ? 'correct' : 'wrong'); @endphp
Q{{ $index + 1 }} {{ $state === 'correct' ? 'Correct' : ($state === 'wrong' ? 'Wrong' : 'Skipped') }} @if(!empty($row['topic'])) {{ $row['topic'] }} @endif

{{ $row['question_text'] }}

@if(!empty($row['question_text_en']))

{{ $row['question_text_en'] }}

@endif

Your Answer

{{ $row['selected_text'] ?? 'Not attempted' }}

Correct Answer

{{ $row['correct_text'] }}

@if(!empty($row['explanation']))
💡

{{ $row['explanation'] }}

@endif
@endforeach
{{-- CTA --}}

Ye sirf ek demo tha 🎯

Full access ke saath aapko milega: unlimited tests, AI tutor, previous year analysis, aur detailed progress tracking