@extends('client.layout.master') @php use App\Models\Translation; $locale = app()->getLocale(); @endphp @section('title', Translation::getValue('faq_title', $locale)) @section('content') @php use Illuminate\Support\Str; @endphp

{{ Translation::getValue('faq_title', $locale) }}

@if($faqs->count() === 0)

{{ Translation::getValue('no_results', $locale) }}

@if($search)

"{{ $search }}"

@endif
@endif @forelse($faqs as $faq)
{{-- MEDIA --}}
@if($faq->video_url)
@endif
{{ $faq->created_at->format('d') }} {{ strtoupper($faq->created_at->format('M')) }}
{{-- CONTENT --}}

{{ $faq->getQuestion($locale) }}

{{ Str::limit(strip_tags($faq->getAnswer($locale)), 220) }}
@if($faq->pdf_url) {{Translation::getValue('pdf_manual',$locale)}} @endif
@empty

{{ Translation::getValue('no_faq_found',$locale)}}

@endforelse
{{ $faqs->links('vendor.pagination.bootstrap-4') }}
@endsection