@php use App\CentralLogics\Helpers;use App\Models\ReactFaq; @endphp @extends('layouts.admin.app') @section('title', translate('messages.landing_page_settings')) @section('content')
@php($default_lang = str_replace('_', '-', app()->getLocale())) @if($language) @endif

{{ translate('Add_FAQ') }}

@csrf
0/50
@if($language) @foreach(json_decode($language) as $lang)
0/50
@endforeach @endif
@php($max = $faqCount > 0 ? $faqCount + 1 : 1)
0/150
@if($language) @foreach(json_decode($language) as $lang)
0/150
@endforeach @endif
{{ translate('faq_list') }}
@forelse ($faqs as $key=>$faq) {{-- quick view modal --}} @empty @endforelse
{{translate('sl')}} {{translate('question')}} {{translate('messages.answer')}} {{translate('messages.priority')}} {{translate('Status')}} {{translate('Action')}}
{{ $key+$faqs->firstItem() }}

{{ $faq->question }}

{{ \Illuminate\Support\Str::limit($faq->answer, 50, $end='...') }}

{{ $faq->priority }}
{{-- edit modal --}}
@csrf @method('delete')
@if(count($faqs) === 0)
public
{{translate('no_data_found')}}
@endif
{!! $faqs->appends(request()->all())->links() !!}
@endsection @push('script_2') @endpush