@props(['course', 'module' => null, 'question' => null]) {{-- Add or edit one MCQ: the question, up to four answers, and which one is correct --}} @php $key = $question ? "q{$question->id}" : 'nq'.($module->id ?? 'final'); $options = array_pad($question?->options ?? [], 4, ''); @endphp