@extends('layouts.app') @section('title', 'Template P2H ' . $template->name . ' - Admin QMA') @section('content')
MANAJEMEN TEMPLATE P2H

{{ $template->name }}

{{ $template->description ?: "Kode Checksheet: {$template->code} • Template form inspeksi resmi kategori {$template->name}" }}

Kembali
@if(!empty($groupedItems) && count($groupedItems) > 0)
@foreach($groupedItems as $sectionName => $itemsInSection) @php $secKey = 'sec_' . md5($sectionName); $isFirst = $loop->first; @endphp @endforeach @if(count($groupedItems) > 1) @endif
@foreach($groupedItems as $sectionName => $itemsInSection) @php $secKey = 'sec_' . md5($sectionName); $isFirst = $loop->first; @endphp

{{ $sectionName }}

{{ count($itemsInSection) }} Pertanyaan
@forelse($itemsInSection as $item) @php $typeLabel = $item->question_type_label; @endphp @empty @endforelse
No Pertanyaan / Butir Cek Tipe Respon Aksi
{{ $item->sequence }}. {{ $item->title }} @if(in_array($typeLabel, ['Multiple choice: only one answer', 'Matrix'])) {{ $typeLabel }} @elseif($typeLabel === 'Multiple choice: multiple answers allowed') {{ $typeLabel }} @elseif(in_array($typeLabel, ['Multiple Lines Text Box', 'Single Line Text Box'])) {{ $typeLabel }} @elseif($typeLabel === 'Numerical Value') {{ $typeLabel }} @elseif(in_array($typeLabel, ['Date', 'Datetime'])) {{ $typeLabel }} @else {{ $typeLabel }} @endif

Belum ada butir pertanyaan pada bagian ini.

Tambahkan butir pemeriksaan baru menggunakan tombol di bawah.

@endforeach
@else

Belum Ada Butir Pertanyaan

Template checksheet ini belum memiliki butir pertanyaan. Tambahkan bagian/section dan butir pemeriksaan pertama untuk template ini.

@endif
@foreach($availableSections as $sec) @endsection