@if (error()) {
error {{ error() }}
} @if (success()) {
check_circle {{ success() }}
} @if (locked()) {
lock This quiz has been attempted. Questions cannot be modified.
} @if (loading()) {

Loading quiz...

} @else { @if (!locked()) {

Questions ({{ questions().length }})

@for (q of questions(); track $index; let i = $index) {
Q{{ i + 1 }} {{ q.type === 'mcq' ? 'MCQ' : 'SINGLE' }}
@for (opt of q.options; track $index; let j = $index) {
@if (q.correctAnswer && opt && q.correctAnswer === opt && opt !== '') { ✓ }
}
check_circle
}
} }