@props([ 'items' => [], 'title' => null, 'eyebrow' => null, ]) @php $faqs = collect($items) ->filter(fn ($item): bool => filled(data_get($item, 'question')) && filled(data_get($item, 'answer'))) ->values(); // Unique prefix so multiple FAQ blocks on one page keep their ARIA wiring // (aria-controls / aria-labelledby) valid. $faqUid = \Illuminate\Support\Str::lower(\Illuminate\Support\Str::random(6)); @endphp @if ($faqs->isNotEmpty())
{{ $eyebrow }}
@endif @if (filled($title))