@extends('layouts.app') @section('admin_title', 'Add MCQ') @section('content')
@if(request()->has('message'))
{{ request()->input('message') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

Add MCQ to : {{ $universityName }} / {{ $courseName }} / {{ $moduleName }} / {{ $topicName }}

@csrf
{{-- ✅ FORM ONLY HOLDS REAL SUBMIT FIELDS (NO QUILL DOM INSIDE FORM) --}}
@csrf {{-- Hidden fields that receive Quill HTML --}}
{{-- ✅ VISIBLE CONTROLS OUTSIDE FORM, LINKED USING form="addMcqForm" --}}

Question

@for($i=1; $i<=2; $i++)

Option {{ $i }} editor

@endfor
@for($i=3; $i<=4; $i++)

Option {{ $i }} editor

@endfor
{{-- ✅ FINAL GUARANTEED LIGHTHOUSE FIX (auto adds id+name to any dynamic field) --}} @endsection