@php $hasAny = $groups->contains(fn ($g) => $g['faqs']->isNotEmpty()); $chips = $grouped ? $groups->filter(fn ($g) => $g['name'] && $g['faqs']->isNotEmpty())->values() : collect(); @endphp
{{-- ===================== PAGE HEADER BAND ===================== --}}
Help & answers

Frequently asked questions

Everything you need to know about {{ $currentEvent->name() }} and fundraising for Youth Suicide Prevention Ireland.

{{-- ===================== BODY ===================== --}}
@if ($hasAny) {{-- search + category chips --}}
@if ($chips->count() > 1)
@foreach ($chips as $chip) @endforeach
@endif
{{-- results (server-rendered; Alpine filters/searches client-side) --}}
@foreach ($groups as $group) @continue ($group['faqs']->isEmpty()) @php $slug = ($grouped && $group['name']) ? \Illuminate\Support\Str::slug($group['name']) : ''; @endphp @if ($grouped && $group['name'])

{{ $group['name'] }}

@endif @foreach ($group['faqs'] as $faq)
{!! $faq->renderedAnswer() !!}
@endforeach @endforeach
{{-- no-match (search) empty state --}}
No matching questions
Try different words, or browse all categories.
@else

There are no FAQs to show yet — please check back soon.

@endif {{-- still stuck --}}

Still have a question?

Our team is happy to help — we aim to reply the same working day.