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

{{ translate('Faq') }}

@foreach ($data as $key => $d) @endforeach
# {{ translate('Title') }} {{ translate('Active') }} {{ translate('Options') }}
{{ $key + 1 + ($data->currentPage() - 1) * $data->perPage() }} {{ trunc($d->{'title_' . App::getLocale()}, 8) }}
{{ $data->links() }}

{{ translate('Add faq') }}

{!! Form::open(['method' => 'post', 'action' => 'Admin\FaqController@store', 'files' => true, 'id' => 'add_faq_form']) !!}
{!! Form::text('title_ar', null, ['class' => 'form-control', 'placeholder' => translate('Arabic Title')]) !!}
@error('title_ar')
{{ $message }}
@enderror
{!! Form::text('title_en', null, ['class' => 'form-control', 'placeholder' => translate('English Title')]) !!}
@error('title_en')
{{ $message }}
@enderror
{!! Form::textarea('description_ar', null, ['id' => 'editor1', 'class' => 'form-control', 'placeholder' => translate('Arabic Description')]) !!}
@error('description_ar')
{{ $message }}
@enderror
{!! Form::textarea('description_en', null, ['id' => 'editor1', 'class' => 'form-control', 'placeholder' => translate('English Description')]) !!}
@error('description_en')
{{ $message }}
@enderror
{!! Form::Close() !!}
@endsection @section('script') @endsection