@extends('layouts.app') @section('title', $module->title) @section('content') @include('partials.flash') @php $total = $questions->count(); $perQ = 60; $r = 32; $circ = 2 * M_PI * $r; @endphp arrow_back Back to {{ $course->title }} {{-- Header: title + per-question countdown (same ring as the module timer) --}}
quiz

{{ $module->title }}

{{ $total }} {{ Str::plural('question', $total) }} · Pass mark {{ $module->pass_mark }}% @if($module->max_attempts) · Attempt {{ $attemptNo }} of {{ $module->max_attempts }} @else · Attempt {{ $attemptNo }} @endif · {{ $perQ }}s per question

{{-- Countdown ring --}}
{{ $perQ }}
{{-- Progress bar --}}
Question 1 of {{ $total }}
@csrf @foreach($questions as $i => $q)
{{ $i + 1 }}

{{ $q->text }}

@if($q->type === 'multiple')

Select all that apply

@endif
@foreach($q->options as $opt) @endforeach
@endforeach
Exit
@endsection