@extends('layouts.adminmaster') @section('styles') @endsection @section('content')
@csrf @honeypot

{{lang('FAQ’s Section')}}

@error('faqtitle') {{ lang($message) }} @enderror
@error('faqsub') {{ lang($message) }} @enderror

{{lang('FAQ’s', 'menu')}}

@can('FAQs Create') {{lang('Add FAQ')}} @endcan
@can('FAQs Delete') @endcan @can('FAQs Delete') @endcan @cannot('FAQs Delete') @endcannot @php $i = 1; @endphp @foreach($faqs as $faq) @endforeach
{{lang('Sl.No')}} {{lang('Question')}} {{lang('Answer')}} {{lang('Faq Category', 'menu')}} {{lang('Privacy Mode')}} {{lang('Status')}} {{lang('Actions')}}
{{$i++}} @if(Auth::user()->can('FAQs Delete')) @else @endif {{Str::limit($faq->question, '50')}} {!! strip_tags( \Illuminate\Support\Str::words($faq->answer, 5,'...')) !!} @if($faq->faqcat_id != null) @if($faq->faqcategory != null) {{$faq->faqcategory->faqcategoryname}} @else ~ @endif @else ~ @endif @if(Auth::user()->can('FAQs Edit')) @if($faq->privatemode == '1') @else @endif @else ~ @endif @if(Auth::user()->can('FAQs Edit')) @if($faq->status == '1') @else @endif @else ~ @endif
@if(Auth::user()->can('FAQs Edit')) @else ~ @endif @if(Auth::user()->can('FAQs Delete')) @else ~ @endif
@endsection @section('modal') @include('admin.faq.model') @endsection @section('scripts') @endsection