@extends('admin.layout') @section('content')

{{ translate('Faq') }}

@foreach ($data as $key => $d) @endforeach
# {{ translate('Faq type') }} {{ translate('Title') }} {{ translate('Show mobile') }} {{ translate('Options') }}
{{ $key + 1 + ($data->currentPage() - 1) * $data->perPage() }} {{ trunc($d->FaqAdminType->getTranslation('title'), 4) }} {{ trunc($d->getTranslation('title'), 8) }}
{{ $data->links() }}

{{ translate('Add faq') }}

{!! Form::open(['method' => 'post', 'action' => 'Admin\FaqController@store', 'files' => true]) !!}
{!! Form::select('type_id', $types, null, ['class' => 'form-control select2', 'placeholder' => translate('Faq type')]) !!}
@error('type_id')
{{ $message }}
@enderror
{!! Form::text('title', null, ['class' => 'form-control', 'placeholder' => translate('Title')]) !!}
@error('title')
{{ $message }}
@enderror
{!! Form::textarea('description', null, ['id' => 'editor1', 'class' => 'form-control', 'placeholder' => translate('Description')]) !!}
@error('description')
{{ $message }}
@enderror
{!! Form::Close() !!}
@endsection @section('script') @endsection