@extends('admin.layouts.app') @section('title', 'Preview Batch #' . $batch->id) @section('page-title', 'Preview Batch #' . $batch->id) @section('page-title-jp', '試験バッチ プレビュー') @section('content') @php $statusLabels = ['draft' => 'Draft', 'active' => 'Aktif', 'archived' => 'Arsip']; $statusColors = ['draft' => 'badge-warning', 'active' => 'badge-success', 'archived' => 'badge-gray']; @endphp
Kembali ke Assessment Bank
{{-- Batch info header --}}

Batch #{{ $batch->id }} — {{ $batch->level }}

{{ $statusLabels[$batch->status] ?? $batch->status }} @foreach (($batch->section_counts ?? []) as $comp => $count) @if ($count > 0) {{ $componentLabels[$comp] ?? $comp }}: {{ $count }} @endif @endforeach Total: {{ $grouped->flatten()->count() }} item
@if ($batch->status === 'draft')
@csrf
@csrf
@endif
{{-- Questions grouped by component --}} @foreach ($grouped as $component => $batchItems)
{{ $componentLabels[$component] ?? ucfirst($component) }}
{{ $batchItems->count() }} soal
@foreach ($batchItems as $idx => $bi) @php($item = $bi->item)
@if ($item->isInstruction())
Instruksi Audio @if (data_get($item->context, 'audio_url')) @endif
@if (data_get($item->context, 'transcript'))
{{ Str::limit(data_get($item->context, 'transcript'), 200) }}
@endif @else
{{ $idx + 1 }}.
{{-- Reading passage --}} @if ($component === 'reading' && data_get($item->context, 'passage'))
{{ data_get($item->context, 'passage.title', 'Teks Bacaan') }}
{{ data_get($item->context, 'passage.body') }}
@endif {{-- Listening audio --}} @if ($component === 'listening' && data_get($item->context, 'audio_url'))
@if (data_get($item->context, 'transcript'))
Transcript
{{ data_get($item->context, 'transcript') }}
@endif
@endif
{{ $item->prompt }}
@if ($item->question_label)
{{ $item->question_label }}
@endif
@foreach (($item->choices ?? []) as $c) {{ $c }}{{ $c === $item->answer ? ' ✓' : '' }} @endforeach
@if ($item->isReviewed()) ✓ Reviewed @else Draft @endif v{{ $item->version }} · ID #{{ $item->id }}
@endif
@endforeach
@endforeach @endsection