{{-- Group heading --}}
{{-- Questions --}}
@endforeach
{{-- ─── Additional Comments ─────────────────────────────────── --}}
@if (!empty($session->additional_comments))
Group {{ $groupIndex + 1 }}
{{ $group->name }}
@if (!empty($group->description))
{{ $group->description }}
@endif
@forelse ($group->questions as $question)
@php
$answer = $answersMap->get($question->id);
$answerValue = $answer?->value;
$textValue = $answer?->text_value;
$pillClass = match ($answerValue) {
'yes' => 'answer-pill answer-yes',
'no' => 'answer-pill answer-no',
'na' => 'answer-pill answer-na',
default => '',
};
$pillLabel = match ($answerValue) {
'yes' => 'Yes',
'no' => 'No',
'na' => 'N/A',
default => null,
};
@endphp
@empty
|
{{ $question->text }}
@if (!empty($textValue))
{{ $textValue }}
@endif
|
@if ($pillLabel !== null)
{{ $pillLabel }} | @endif|
No questions in this group.
@endforelse
Additional Comments
{{ $session->additional_comments }}