Performance Summary

{{ $correctCount }}
Correct Answers
{{ $attemptedCount - $correctCount }}
Incorrect Answers
{{ $totalQuestions - $attemptedCount }}
Not Attempted
{{ $percentageScore }}%
Accuracy Rate

Question Review

All MCQ questions attempted by the student

{{ count($completedQuestions) }} Questions
@if(count($completedQuestions) > 0)
@foreach($completedQuestions as $index => $row) @php $q = $questionsData[$row->questionid] ?? null; $isCorrect = $row->selectedanswer == $row->correctanswer; $difficultyColors = [ 'easy' => ['bg' => '#065f46', 'text' => '#34d399'], 'medium' => ['bg' => '#92400e', 'text' => '#f59e0b'], 'hard' => ['bg' => '#991b1b', 'text' => '#f87171'], 'Easy' => ['bg' => '#065f46', 'text' => '#34d399'], 'Medium' => ['bg' => '#92400e', 'text' => '#f59e0b'], 'Hard' => ['bg' => '#991b1b', 'text' => '#f87171'] ]; $level = $q->level ?? 'easy'; $colors = $difficultyColors[$level] ?? $difficultyColors['easy']; @endphp
{{ $index + 1 }}

{{ $q->question ?? 'Question not available' }}

@if($q)
Difficulty: {{ ucfirst($level) }}
@endif
Selected Answer: {{ $row->selectedanswer ?? 'Not recorded' }} @if($isCorrect) @else @endif
Correct Answer: {{ $row->correctanswer ?? 'N/A' }}
@if(isset($row->submitedtime) && $row->submitedtime)
Submitted: {{ \Carbon\Carbon::parse($row->submitedtime)->format('d M Y, h:i A') }}
@endif
@endforeach
@else

No Questions Attempted

This student hasn't attempted any MCQ questions yet.

@endif