@php $sampleColors = ['3b82f6','22c55e','f59e0b','ef4444','8b5cf6']; @endphp {{-- Pertanyaan Umum --}}
Pertanyaan Umum Berlaku untuk semua sampel
{{ $panelTest->generalQuestions->count() }} pertanyaan
@forelse($panelTest->generalQuestions as $i => $q)
{{ $i + 1 }}
{{ $q->question_text }}
{{ $q->question_type }} @if($q->options) @foreach($q->options as $opt) {{ $opt }} @endforeach @endif
@csrf @method('DELETE')
@empty

Belum ada pertanyaan umum

@endforelse {{-- Form tambah pertanyaan umum --}}
@csrf
{{-- Daftar Sampel --}} @foreach($panelTest->samples as $si => $sample) @php $color = $sampleColors[$si % 5]; @endphp
Sampel {{ $si + 1 }} {{-- Edit nama sampel inline --}}
@csrf @method('PUT')
{{ $sample->questions->count() }} pertanyaan
@csrf @method('DELETE')
{{-- Salin pertanyaan dari sampel lain --}} @if($panelTest->samples->count() > 1)
Salin pertanyaan dari sampel lain ke {{ $sample->name }}:
@csrf
@endif {{-- Daftar pertanyaan --}} @forelse($sample->questions as $qi => $q)
{{ $qi + 1 }}
{{ $q->question_text }}
{{ $q->question_type }} @if($q->options) @foreach($q->options as $opt) {{ $opt }} @endforeach @endif
@csrf @method('DELETE')
@empty
Belum ada pertanyaan.
@endforelse {{-- Form tambah pertanyaan sampel --}}
Tambah pertanyaan ke {{ $sample->name }}:
@csrf
@endforeach {{-- Form tambah sampel baru --}}
Tambah Sampel Baru (Gelas A, Gelas B, dst)
@csrf
@if($panelTest->samples->count() > 0)
@endif
@if($panelTest->samples->count() > 0)
Tips: Pilih "Salin dari" untuk menyalin pertanyaan otomatis!
@endif
@push('scripts') @endpush