@extends('client.layout.master') @section('page-title', 'Faq') @section('breadcrumb') @endsection @section('title','Faq') @section('content')
{{-- Header/Filters --}}
Total: {{ $faq->count() }}
@if(isset($categories) && $categories->isNotEmpty())
@foreach($categories as $cat) @endforeach
@endif
{{-- FAQ Accordion --}}
@if($faq->isEmpty())
😅

No FAQs available right now.

@else
@foreach($faq as $item) @php $collapseId = 'faqItem'.$item->id; $headingId = 'heading'.$item->id; $ratio = round($item->helpfulness_ratio, 1); @endphp

{!! nl2br(e($item->answer)) !!}
Was this answer helpful? Thanks for your feedback!
@endforeach
{{-- Empty state after filtering/search --}}
😕 No matching results for your search/filter.
@endif
{{-- Tiny inline JS for search/filter/votes --}} @push('js') @endpush @push('style') @endpush @endsection