@extends('adminlte::page') @section('title', 'Kelola Soal') {{-- Tambahkan Summernote plugin --}} @section('plugins.Summernote', true) @section('content_header')

Kelola Soal: {{ $exam->name }}

Kembali ke Daftar Ujian
@stop @section('content')
@if (session('success'))
{{ session('success') }}
@endif

Buat Soal Baru

@csrf
{{-- Pilihan Tipe Soal --}}
@error('question_type') {{ $message }} @enderror
Gunakan tombol Math di toolbar editor untuk menyisipkan rumus matematika.
{{-- Ini akan diisi oleh JavaScript --}}
@error('score') {{ $message }} @enderror

Daftar Soal ({{ $exam->questions->count() }})

@forelse($exam->questions as $key => $q)
@csrf @method('DELETE')
Soal No. {{ $key + 1 }} {{ $q->score }} Poin @if($q->question_type === 'essay') ESAI @endif
{{-- Render Area MathJax --}}
{!! $q->question_text !!}
@if($q->question_type === 'multiple_choice')
    @foreach($q->options as $opt)
  • @if($opt->is_correct) @else @endif {!! $opt->option_text !!}
  • @endforeach
@endif
@empty
Belum ada soal.
@endforelse
@stop {{-- 1. Load MathJax CDN untuk Rendering --}} @section('js') @stop