@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()) {
business_center Hire Guru

{{ quiz().title }}

Online Assessment · {{ questions().length }} Questions
@if (violationCount() > 0) {
warning {{ violationCount() }}/{{ getMaxViolations() }}
}
{{ isFullscreen() ? 'fullscreen' : 'fullscreen_exit' }}
timer {{ formattedTime() }}
Q{{ currentIndex() + 1 }} {{ currentQuestion().type === 'mcq' ? 'Multiple Correct' : 'Single Correct' }} {{ currentIndex() + 1 }} of {{ questions().length }}

{{ currentQuestion().question }}

@for (option of currentQuestion().options; track option; let i = $index) { }
@if (currentIndex() < questions().length - 1) { } @else { }
}
@if (showWarningModal() && currentWarning()) {
{{ currentWarning()!.isAutoSubmit ? 'block' : 'warning' }}

{{ currentWarning()!.title }}

{{ currentWarning()!.message }}

@if (!currentWarning()!.isAutoSubmit) {
@for (i of [1,2,3]; track i) {
}

{{ currentWarning()!.violationCount }}/{{ getMaxViolations() }} violations

} @if (!currentWarning()!.isAutoSubmit) {

⚠️ Exiting fullscreen or switching tabs again will count as another violation.

} @else {

Submitting your quiz...

}
}