{{ __('FAQ Management') }}
Total FAQs
{{ $faqs->count() }}
Active
{{ $faqs->where('status', 1)->count() }}
Inactive
{{ $faqs->where('status', 0)->count() }}
Total Q&As
{{ $faqs->sum(function($faq) { return $faq->questions->count(); }) }}
FAQs Table
| # | Title | Permalink | Page URL | Q&As | Sort Order | Status | Created Date | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ $i++ }} |
{{ Str::limit($faq->title, 40) }}@if ($faq->description) {{ Str::limit(strip_tags($faq->description), 60) }} @endif |
{{ $faq->permalink }}
|
@if ($faq->page_url) {{ Str::limit($faq->page_url, 30) }} @else Not set @endif | {{ $faq->questions->count() }} Q&As | {{ $faq->sort_order }} | @php $statusClass = [ 0 => 'bg-warning-subtle text-warning', 1 => 'bg-success-subtle text-success', ]; $statusText = [ 0 => 'Inactive', 1 => 'Active', ]; @endphp {{ $statusText[$faq->status] ?? 'Unknown' }} |
{{ $faq->created_at->format('M d, Y') }}
{{ $faq->created_at->format('h:i A') }} |
|