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)
@endif
@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
@if(isset($row->submitedtime) && $row->submitedtime)
@endif
@endforeach
@else
{{ $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' }}
Submitted: {{ \Carbon\Carbon::parse($row->submitedtime)->format('d M Y, h:i A') }}
No Questions Attempted
This student hasn't attempted any MCQ questions yet.