@if($hp->notes)
備註:{{ $hp->notes }}
@endif
@foreach($depts as $deptKey => $deptLabel)
@php $dRs = $respsByDept[$deptKey] ?? collect(); @endphp
@if($dRs->isNotEmpty())
{{ $deptLabel }}
@foreach($dRs as $r)
@php
$isYesno = $r->template->item_type === 'yesno';
$answer = $isYesno
? ($r->status !== 'pending' ? ($r->yesno_value ? '是' : '否') : '—')
: ($r->content ?? '—');
@endphp
{{ $r->template->title }}
{{ $answer }}
@if($r->status === 'confirmed')
已確認
@elseif($r->status === 'filled')
已填寫
@else
未填寫
@endif
@endforeach
@endif
@endforeach