{{ $editMode ? 'Edit Question' : 'Create New Question' }}

Question Details
@if (session()->has('success')) @endif @if (session()->has('error')) @endif
@error('questionType')
{{ $message }}
@enderror
@error('scorePoints')
{{ $message }}
@enderror
@error('questionText')
{{ $message }}
@enderror
@if(in_array($questionType, ['MULTIPLE_CHOICE', 'TRUE_FALSE', 'ORDER']))
Options
@foreach($options as $index => $option)
{{ $index + 1 }} @if($questionType === 'MULTIPLE_CHOICE')
@endif @if(count($options) > 2) @endif
@endforeach
@endif @if($questionType === 'MATCH')
Left Items
@foreach($options['left_items'] as $index => $item)
{{ $index + 1 }} @if(count($options['left_items']) > 2) @endif
@endforeach
Right Items
@foreach($options['right_items'] as $index => $item)
{{ $index + 1 }} @if(count($options['right_items']) > 2) @endif
@endforeach
@endif @if($questionType === 'MATRIX')
Rows
@foreach($options['rows'] as $index => $row)
{{ $index + 1 }} @if(count($options['rows']) > 2) @endif
@endforeach
Columns
@foreach($options['columns'] as $index => $column)
{{ $index + 1 }} @if(count($options['columns']) > 2) @endif
@endforeach
@endif @if(in_array($questionType, ['FILL_BLANK', 'SHORT_ANSWER', 'ESSAY', 'DATE', 'CODE', 'NUMERIC']))
Correct Answer
@if($questionType === 'FILL_BLANK' || $questionType === 'SHORT_ANSWER') @elseif($questionType === 'ESSAY') @elseif($questionType === 'DATE') @elseif($questionType === 'CODE') @elseif($questionType === 'NUMERIC') @endif
@endif
Question Settings