@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
{{ $activeSection->description }}
@endif