@extends('layouts.app') @section('page-title') {{ __('FAQ') }} @endsection @section('breadcrumb') @endsection @section('content')
{{ __('FAQ') }}
@can('create FAQ') @endcan
@if (Gate::check('edit FAQ') || Gate::check('delete FAQ')) @endif @foreach ($FAQs as $item) @if (Gate::check('edit FAQ') || Gate::check('delete FAQ')) @endif @endforeach
{{ __('Question') }} {{ __('Enable') }}{{ __('Action') }}
{{ $item->question }} @if ($item->enabled == 1) {{ __('Enable') }} @else {{ __('Disable') }} @endif
{!! Form::open(['method' => 'DELETE', 'route' => ['FAQ.destroy', encrypt($item->id)]]) !!} @can('edit FAQ') @endcan @can('delete FAQ') @endcan {!! Form::close() !!}
@endsection