@extends('layouts.app') @section('title', $createMode ? 'Buat Soal Ujian' : 'Bank Soal Ujian') @section('content')

Standar Penilaian Manajemen Ujian

{{ $createMode ? 'Buat Soal Ujian' : 'Bank Soal Ujian' }}

{{ $createMode ? 'Pilih cara membuat soal untuk kelas dan mata pelajaran yang diampu.' : 'Kelola bank soal berdasarkan periode, kelas, mata pelajaran, dan jenis ujian.' }}

@if ($createMode) Kembali ke bank soal @else Buat Soal @endif
@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())@endif

{{ $createMode ? 'Pilih data soal' : 'Filter bank soal' }}

@if ($createMode)@endif
@if ($createMode) @if (!$classId || !$subjectId || empty($filters['jenis']))
Pilih tahun pelajaran, semester, kelas, mata pelajaran, dan jenis ujian di atas untuk menampilkan metode pembuatan soal.
@elseif ($chapters->isEmpty())
Peta materi kelas dan mata pelajaran ini belum tersedia. Buat peta materi terlebih dahulu sebelum menambahkan soal.
@else

Pilih metode pembuatan soal

{{ $period->tahun_pelajaran }} · {{ $period->semester }} · {{ $classes->firstWhere('id', $classId)?->nama_kelas }} · {{ $subjects->firstWhere('id', $subjectId)?->nama_mapel }} · {{ $filters['jenis'] === 'PTS' ? 'PSTS' : 'PSAS' }}

@csrf
@foreach (['a','b','c','d','e'] as $option)@endforeach
@endif @elseif ($classId && $subjectId && !empty($filters['jenis']))

Daftar soal tersimpan

{{ $questions->count() }} soal · {{ $filters['jenis'] }} · {{ $period->tahun_pelajaran }}

@forelse ($questions as $question) @php($answerOptions = []) @foreach (['a','b','c','d','e'] as $option) @php($decoded = json_decode($question->{'opsi_'.$option} ?? '', true)) @if (!empty($decoded['teks']))@php($answerOptions[] = strtoupper($option).'. '.$decoded['teks'])@endif @endforeach @empty @endforelse
No.BABTipePertanyaan / berkasOpsi dan kunciAksi
{{ $loop->iteration }}{{ $question->bab_ke ? 'BAB '.$question->bab_ke : '—' }}{{ str_replace('_', ' ', $question->tipe_soal) }}

{{ $question->pertanyaan ?: 'Arsip soal terlampir' }}

@if ($question->file_upload)Lihat berkas soal@endif @if ($question->gambar_soal)Lihat gambar@endif
@if ($answerOptions !== [])

{{ implode("\n", $answerOptions) }}

@endif @if ($question->jawaban)

Kunci: {{ $question->jawaban }}

@endif @if ($question->pasangan)

Pasangan: {{ $question->pasangan }}

@endif @if ($question->sub_pertanyaan)

Subpertanyaan: {{ $question->sub_pertanyaan }}

@endif
@csrf @method('DELETE')
Belum ada soal yang sesuai filter.
@endif
@push('scripts') @endpush @endsection