@extends('layouts.admin') @section('title','Add Question') @section('page-title','Add Question') @section('content')
Add New Question
@csrf {{-- Row 1: Subject, Topic, Year, Difficulty --}}
@error('subject_id')
{{ $message }}
@enderror
@error('difficulty')
{{ $message }}
@enderror
{{-- Instruction Group (Comprehension Passage) --}}
Don't have a passage yet? Create one here
{{-- Question Text (TinyMCE) --}}
Use the toolbar for superscript (x²), subscript (H₂O), tables, and special characters. @error('question_text')
{{ $message }}
@enderror
{{-- Question Image --}}
@error('question_image')
{{ $message }}
@enderror
{{-- Options A, B, C, D --}}
Select the radio button next to the correct answer.
@foreach(['A','B','C','D'] as $i => $label)
{{-- Correct Answer Radio --}}
{{-- Label Badge --}} {{-- Option content --}}
@error('options.'.$i.'.text')
{{ $message }}
@enderror {{-- Option Image --}}
Optional image for this option
@endforeach {{-- Explanation --}}
{{-- Status --}}
Uncheck to save as draft
Cancel
@endsection @push('styles') @endpush @push('scripts') {{-- TinyMCE CDN --}} @endpush