@props([ 'questionnaire', 'activeSection', 'answers' => [], 'answerMeta' => null, 'progress', 'promptsByQuestion', 'citationsByQuestion', 'exhibitByItem', 'validationRequested' => false, 'touched' => [], ]) @php $sections = $questionnaire->sections()->values(); $index = $sections->search(fn ($s) => $s->key === $activeSection?->key); $index = $index === false ? 0 : $index; $sectionProgress = $activeSection ? ($progress->sections[$activeSection->key] ?? null) : null; @endphp
{{-- Section navigation --}}
@if($activeSection)

{{ $activeSection->title }}

@if($activeSection->sensitive) Sensitive @endif @if($sectionProgress) {{ $sectionProgress['answered'] }}/{{ $sectionProgress['total'] }} answered @endif
@if($activeSection->description)

{{ $activeSection->description }}

@endif
Record the client's answer in their own words. Evidence appears only as prompts to ask about — it is never entered for them.
@foreach($activeSection->questions as $q) @endforeach
@endif