@props([ 'faqs', 'heading' => 'Frequently Asked Questions', 'subheading' => null, 'id' => 'faqAccordion', ]) {{-- Shared FAQ accordion (PRD 6.8, 4.13, 4.18) — one component reused by the homepage, services page and contact page so the three never drift into different accordion behaviours or heading styles (PRD 3.31, UI consistency). Built on Bootstrap's own collapse component rather than hand-rolled JS: it already handles the ARIA wiring (aria-expanded, aria-controls, region semantics) that PRD 14.18's WCAG target requires, and Bootstrap is already in the bundle. The $id prop exists because two accordions can legitimately appear on one page (e.g. a service's own FAQ plus the global one); duplicate DOM ids would make the collapse targets ambiguous. --}} @if($faqs->isNotEmpty())

FAQ

{{ $heading }}

@if($subheading)

{{ $subheading }}

@endif
@foreach($faqs as $faq) @php $itemId = $id.'-item-'.$faq->id; @endphp

{!! nl2br(e($faq->answer)) !!}
@endforeach
@endif