@extends('layouts.admin_lbb') @section('page-title', 'Kelola Soal Paket') @section('content')

{{ $package->name }}

{{ $package->description ?? 'Tanpa deskripsi' }}

{{ $totalQuestions }} Soal
{{ $exam->duration }} menit
{{ $totalQuestions }}
Total Soal
{{ $multipleChoiceCount }}
Pilihan Ganda
{{ $trueFalseCount }}
Benar / Salah
{{ $listeningCount ?? 0 }}
Listening
Daftar Soal
@if(request('search') || request('type') || request('per_page'))
@else
@endif
@if(request('search') || request('type') || request('per_page'))
Reset
@else
@endif
@forelse($questions as $index => $question) @if($question->question_type === 'multiple_choice')
{{ $question->question_number ?? ($index + 1) }}
Pilihan Ganda {{ $question->topic ?? 'Umum' }} @if($question->image_path) Content Bergambar @endif
@purify($question->question_text)
@if($question->image_path)
Gambar Soal
@endif
@foreach($question->options as $optionIndex => $option)
{{ ['A','B','C','D','E'][$optionIndex] ?? '' }}.
{{ $option->content }}
@if($option->option_key->value == $question->answer_key) Kunci @endif
@if($option->image_path) Gambar {{ ['A','B','C','D','E'][$optionIndex] }} @endif
@endforeach
Kunci Jawaban: {{ $question->answer_key }}
@if($question->explanation)
Pembahasan:

@purify($question->explanation)

@endif
@elseif($question->question_type === 'true_false')
{{ $question->question_number ?? ($index + 1) }}
Benar / Salah {{ $question->topic ?? 'Umum' }}
@purify($question->question_text)
@if($question->image_path)
Gambar Soal
@endif
answer_key == 'TRUE' ? 'checked' : '' }} style="pointer-events: none;">
answer_key == 'FALSE' ? 'checked' : '' }} style="pointer-events: none;">
Kunci Jawaban: {{ $question->answer_key == 'TRUE' ? 'Benar' : 'Salah' }}
@if($question->explanation)
Pembahasan:

@purify($question->explanation)

@endif
@elseif($question->question_type === 'listening')
{{ $question->question_number ?? ($index + 1) }}
Listening {{ $question->topic ?? 'Umum' }} Audio @if($question->max_play_count) Max: {{ $question->max_play_count }}x @endif
@if($question->audio_path || $question->audio_url)
Dengarkan audio berikut:
@if($question->audio_path) @elseif($question->audio_url) @endif
{{ $question->audio_file_name ?? 'Audio listening' }}
@endif
@purify($question->question_text)
@if($question->image_path)
Gambar Soal
@endif
@foreach($question->options as $optionIndex => $option)
{{ ['A','B','C','D','E'][$optionIndex] ?? '' }}.
{{ $option->content }}
@if($option->option_key->value == $question->answer_key) Kunci @endif
@endforeach
Kunci Jawaban: {{ $question->answer_key }}
@if($question->explanation)
Pembahasan:

@purify($question->explanation)

@endif
@endif @empty

Belum ada soal di paket ini

@endforelse
@if($questions->hasPages()) @endif
@include('admin.modal.question.create') @include('admin.modal.question.update') @include('admin.modal.question.import') @endsection