@php $faqItems = collect($faqs ?? [])->sort(function ($left, $right) { $topicComparison = strcasecmp( (string) ($left->faq_category ?: 'General'), (string) ($right->faq_category ?: 'General') ); if ($topicComparison !== 0) { return $topicComparison; } $orderComparison = ((int) ($left->sort_order ?? 0)) <=> ((int) ($right->sort_order ?? 0)); return $orderComparison !== 0 ? $orderComparison : ((int) $left->id <=> (int) $right->id); })->values(); $faqGroups = $faqItems ->groupBy(function ($faq) { $slug = trim((string) ($faq->category_slug ?? '')); return $slug !== '' ? $slug : (\Illuminate\Support\Str::slug((string) ($faq->faq_category ?: 'General')) ?: 'general'); }) ->sortBy(function ($items, $slug) { $label = strtolower((string) optional($items->first())->faq_category ?: 'general'); return ($slug === 'general' ? '0-' : '1-').$label; }); $faqTopicNames = $faqGroups ->map(fn ($items) => (string) (optional($items->first())->faq_category ?: 'General')) ->values(); $publishedFaqCount = $faqItems->filter(fn ($faq) => (bool) ($faq->is_active ?? true))->count(); @endphp
Public support content

FAQ Topics & Questions

Assign every question to a topic. Topic names automatically become the tabs shown on the public FAQ page.

@if($canUpdateCms) @endif
{{ $faqGroups->count() }}Topics
{{ $faqItems->count() }}Total questions
{{ $publishedFaqCount }}Published
@if($canUpdateCms)
@csrf
Question editor
Add a new FAQ

Choose an existing topic or type a new topic name. The public tab is created automatically.

@foreach($faqTopicNames as $topicName) @endforeach
Examples: Getting Started, Trading Accounts, MT4 Platform, Funding & Withdrawals.
Publish question Visible on the public FAQ page
@endif @if($faqItems->isNotEmpty())

Drag questions inside a topic to change their public order.

@endif
@forelse($faqGroups as $topicSlug => $topicFaqs) @php $topicName = (string) (optional($topicFaqs->first())->faq_category ?: 'General'); $topicPublishedCount = $topicFaqs->filter(fn ($faq) => (bool) ($faq->is_active ?? true))->count(); @endphp
{{ $topicName }}

{{ $topicFaqs->count() }} questions ยท {{ $topicPublishedCount }} published

@if($canUpdateCms) @endif
@foreach($topicFaqs->sort(function ($left, $right) { $orderComparison = ((int) ($left->sort_order ?? 0)) <=> ((int) ($right->sort_order ?? 0)); return $orderComparison !== 0 ? $orderComparison : ((int) $left->id <=> (int) $right->id); }) as $faq)
{{ $faq->question }} {{ ($faq->is_active ?? true) ? 'Published' : 'Hidden' }}

{{ \Illuminate\Support\Str::limit(strip_tags((string) $faq->answer), 240) }}

@if($canUpdateCms)
@endif
@endforeach
@empty
No FAQ topics yet

Add the first question and enter a topic name. The topic will become a tab on the public FAQ page.

@endforelse
No matching questions

Try another search term or clear the search field.