{{-- Question badge + type label --}}
{{-- Question text --}}
@if($question->text_content)
{{ $question->text_content }}
@endif
{{-- Question image (for text & text_image types — NOT drag_drop which handles its own image) --}}
@if($question->image_path && $question->type !== 'drag_drop')
@endif
{{-- Question statements for statement_evaluation --}}
@if($question->type === 'statement_evaluation' && $question->statements)
@foreach($question->statements as $sIndex => $statement)
{{ chr(65 + $sIndex) }}.
{{ $statement }}
@endforeach
@endif
{{-- ═══════════════════════════════
TYPE: drag_drop
═══════════════════════════════ --}}
@if($question->type === 'drag_drop')
{{-- Diagram with hotspot overlay --}}
@foreach($question->answers as $a)
@endforeach
{{-- Labels pool --}}
Drag labels onto the hotspots ↑
@foreach($question->answers as $a)
{{ $a->content }}
@endforeach
{{-- ═══════════════════════════════
TYPE: image — image answer grid
═══════════════════════════════ --}}
@elseif($question->type === 'image')
@foreach($question->answers as $answer)
@endforeach
{{-- ═══════════════════════════════
TYPE: text, text_image OR statement_evaluation — pill answers
═══════════════════════════════ --}}
@else
@php
$correctAnswersCount = $question->answers->where('is_correct', true)->count();
$isMultiple = $correctAnswersCount > 1;
@endphp
@if($isMultiple)
{{-- MULTIPLE ANSWER MODE (Intelligent FIFO Checkboxes) --}}
@foreach($question->answers as $answer)
@endforeach
@else
{{-- SINGLE ANSWER MODE (Intelligent Radio UI) --}}
@foreach($question->answers as $answer)
@endforeach
@endif
@endif