{{-- Partial: single checklist response row --}} @php $isYesno = $resp->template->item_type === 'yesno'; $hasAnswer = $resp->status !== 'pending'; // boolean cast makes null→false, so use status $displayVal = $isYesno ? ($hasAnswer ? ($resp->yesno_value ? '是' : '否') : null) : $resp->content; @endphp