@extends('layouts.staff_dashboard') @section('title', 'Add MCQ Question') @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
Please fix the following errors:
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Create MCQ Question

{{ $courseName ?? 'Course' }} {{ $moduleName ?? 'Module' }} {{ $topicName ?? 'Topic' }}
Change Selection
@csrf
Write your question below, fill all 4 options, and select the Correct Answer radio on the right option.
@foreach([ ['num' => 1, 'letter' => 'A', 'editorId' => 'option1_editor', 'radioId' => 'ans1', 'val' => 'option1'], ['num' => 2, 'letter' => 'B', 'editorId' => 'option2_editor', 'radioId' => 'ans2', 'val' => 'option2'], ['num' => 3, 'letter' => 'C', 'editorId' => 'option3_editor', 'radioId' => 'ans3', 'val' => 'option3'], ['num' => 4, 'letter' => 'D', 'editorId' => 'option4_editor', 'radioId' => 'ans4', 'val' => 'option4'], ] as $opt)
{{ $opt['letter'] }} Option {{ $opt['letter'] }} *
@endforeach
@endsection