@extends('backend.layouts.app') @section('title') {{ __('faq_list') }} @endsection @section('content')

{{ __('faq_list') }}

@if (userCan('faq.view')) {{ __('faq_category') }} @endif @if (userCan('faq.create')) {{ __('create_faq') }} @endif
@forelse($faqs as $faq)

{{ $loop->iteration }}. {{ $faq->question }}

@if (userCan('faq.delete'))
@method('DELETE') @csrf
@endif @if (userCan('faq.update')) @endif
{!! $faq->answer !!}
@empty
@if (userCan('faq.create')) @else @endif
@endforelse
@foreach ($faqs_group as $key => $faqs)
@forelse($faqs as $faq)

{{ $loop->iteration }}. {{ $faq->question }}

@if (userCan('faq.delete'))
@method('DELETE') @csrf
@endif @if (userCan('faq.update')) @endif
{!! $faq->answer !!}
@empty
@if (userCan('faq.create')) @else @endif
@endforelse
@endforeach
@endsection