@extends('admin.layouts.master') @section('content')

{{ trans('app.topics') }}

@can('create', \App\Models\Faq::class) {{ trans('app.add_topic') }} @endcan
@foreach ($topics as $topic) @endforeach
{{ $topic->name }} {{ $topic->for }} @can('create', \App\Models\Faq::class)   {!! Form::open(['route' => ['admin.utility.faqTopic.destroy', $topic->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan

{{ trans('app.faqs') }}

@can('create', \App\Models\Faq::class) {{ trans('app.add_faq') }} @endcan
@foreach ($faqs as $faq) @endforeach
{{ trans('app.detail') }} {{ trans('app.topic') }} {{ trans('app.updated_at') }}  
@can('update', $faq) {!! $faq->question !!} @else {!! $faq->question !!} @endcan
{!! $faq->answer !!}
{{ $faq->topic->name }}
{{ strtoupper($faq->topic->for) }}
{{ $faq->updated_at->toFormattedDateString() }} @can('update', $faq)   @endcan @can('delete', $faq) {!! Form::open(['route' => ['admin.utility.faq.destroy', $faq->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan
@endsection