@if (loading()) {

Loading quiz...

} @else if (error() && !quiz()) {
error

{{ error() }}

Back to Dashboard
} @else if (submitted()) {
check_circle

Quiz Submitted!

Redirecting to dashboard...

} @else if (quiz() && currentQuestion()) {

{{ quiz().title }}

Question {{ currentIndex() + 1 }} of {{ questions().length }}
timer {{ formattedTime() }}
@if (error()) {
error{{ error() }}
}
Q{{ currentIndex() + 1 }} {{ currentQuestion().type === 'mcq' ? 'Multiple Correct' : 'Single Correct' }}

{{ currentQuestion().question }}

@for (option of currentQuestion().options; track option; let i = $index) { }
@for (q of questions(); track q._id; let i = $index) { }
@if (currentIndex() < questions().length - 1) { } @else { }
}