@php $faqCategoryModels = \App\Models\FaqCategory::where('is_published', true) ->orderBy('display_order') ->with(['faqs' => fn ($query) => $query->orderBy('id')]) ->get() ->filter(fn ($category) => $category->faqs->isNotEmpty()) ->values(); $faqs = $faqCategoryModels ->flatMap(fn ($category) => $category->faqs->map(fn ($faq) => [ 'q' => $faq->question, 'a' => $faq->answer, 'cat' => $category->name, ])) ->values() ->all(); $faqCategories = $faqCategoryModels->pluck('name')->prepend('All')->values()->all(); @endphp

FAQ

Frequently Asked Questions

@if (empty($faqs))

Will be available soon

We're putting together answers to the questions we hear most. Check back shortly.

@else
@foreach ($faqCategories as $cat) @endforeach
@foreach ($faqs as $faq)

{{ $faq['a'] }}

@endforeach

No matching questions found

Try a different search term, or browse another category.

@endif