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

{{ translate('Pages') }}

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

{{ translate('Add page') }}

{!! Form::open(['method' => 'post', 'action' => 'Admin\PagesController@store', 'files' => true, 'id' => 'add_pages_form']) !!}
{!! Form::text('title_ar', null, ['onkeyup' => 'makeSlugar(this.value)', 'class' => 'form-control', 'placeholder' => translate('Arabic Title')]) !!}
@error('title_ar')
{{ $message }}
@enderror
{!! Form::text('slug_ar', null, ['id' => 'slug_ar', 'class' => 'form-control', 'placeholder' => translate('Arabic Slug')]) !!}
{!! Form::text('title_en', null, ['onkeyup' => 'makeSlugen(this.value)', 'class' => 'form-control', 'placeholder' => translate('English Title')]) !!}
@error('title_en')
{{ $message }}
@enderror
{!! Form::text('slug_en', null, ['id' => 'slug_en', 'class' => 'form-control', 'placeholder' => translate('English Slug')]) !!}
{!! 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' => 'editor2', 'class' => 'form-control', 'placeholder' => translate('English Description')]) !!}
@error('description_en')
{{ $message }}
@enderror
{!! Form::checkbox('show_in_site', null, 1, ['id' => 'Checkbox_1']) !!}

{{ translate('Meta data') }}

{!! Form::text('meta_image_alt_ar', null, ['class' => 'form-control', 'placeholder' => translate('Image alt')]) !!}
{!! Form::text('meta_image_alt_en', null, ['class' => 'form-control', 'placeholder' => translate('Image alt')]) !!}
{!! Form::text('meta_title_ar', null, ['class' => 'form-control', 'placeholder' => translate('Arabic title')]) !!}
{!! Form::text('meta_title_en', null, ['class' => 'form-control', 'placeholder' => translate('English title')]) !!}
{!! Form::textarea('meta_description_ar', null, ['class' => 'form-control', 'placeholder' => translate('Arabic Description')]) !!}
{!! Form::textarea('meta_description_en', null, ['class' => 'form-control', 'placeholder' => translate('English Description')]) !!}
{!! Form::text('meta_kewords_ar', null, ['style' => 'width:100%', 'data-role' => 'tagsinput', 'class' => 'form-control', 'placeholder' => translate('Arabic Kewords')]) !!}
{!! Form::text('meta_kewords_en', null, ['style' => 'width:100%', 'data-role' => 'tagsinput', 'class' => 'form-control', 'placeholder' => translate('English Kewords')]) !!}
@error('meta_kewords_en')
{{ $message }}
@enderror
{!! Form::Close() !!}
@endsection @section('script') @endsection