@if (loading()) {
} @else if (error() && !quiz()) {
} @else if (submitted()) {
check_circle
Quiz Submitted!
Redirecting to dashboard...
} @else if (quiz() && currentQuestion()) {
@if (error()) { error{{ error() }}
}
{{ 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 {
}
}