{{-- resources/views/assessment/take.blade.php --}}

{{ $assessment->category->name }}

Question {{ $questionPosition }} of {{ $totalQuestions }}
{{-- Progress Bar --}}
Progress: {{ $answeredCount }}/{{ $totalQuestions }} answered {{ number_format($progressPercentage, 1) }}% complete
{{-- Question Card --}}
{{-- Question Header --}}
{{ ucfirst($currentQuestion->difficulty_level) }} Weight: {{ $currentQuestion->weight }} points

{{ $currentQuestion->question_text }}

{{-- Answer Form --}}
@csrf @if($currentQuestion->question_type === 'multiple_choice')
@foreach($currentQuestion->getFormattedOptions() as $value => $label) @endforeach
@elseif($currentQuestion->question_type === 'scale')
{{ $currentQuestion->options['min'] ?? 1 }} {{ $currentQuestion->options['max'] ?? 5 }}
@for($i = ($currentQuestion->options['min'] ?? 1); $i <= ($currentQuestion->options['max'] ?? 5); $i++) @endfor
@elseif($currentQuestion->question_type === 'boolean')
@elseif($currentQuestion->question_type === 'text')
@endif {{-- Navigation Buttons --}}
@if($questionPosition > 1) @endif
@if($questionPosition < $totalQuestions) @else @endif
{{-- Question Explanation --}} @if($currentQuestion->explanation)

Additional Information:

{{ $currentQuestion->explanation }}

@endif
{{-- Question Navigation --}}

Question Navigation

@foreach($questions as $index => $question) @php $isAnswered = $assessment->getAnswerForQuestion($question) !== null; $isCurrent = $question->id === $currentQuestion->id; @endphp @endforeach
{{-- Loading Overlay --}}