@include('admin/includes/front_alerts')
{!! Form::open([ 'url' => 'admin/cms/pages/'. $page->page_id,'files'=>true, 'id' => '']) !!}
@if($page->template_id== 0 )
@endif
{!!FORM::close()!!}
Add Page
@foreach(config('app.lang_options')??['en'] as $index=>$lang)
@endforeach
@if($lang!='en')
{{ Form::text('lang['.$lang.'][content][title]', $page->lang_translations->where('lang',$lang)->first()->content['title']??'' ,['class' => 'form-control','id'=>'title']) }}
@else
{{ Form::text('title', $page->title ,['class' => 'form-control','id'=>'title']) }}
@endif
Page title is required
@if($page->template_id > 0 )
@endif
@if($page->template_id== 0 )
{{ Form::textarea('page_description', $page->page_description, ['class' => 'form-control','id'=>'page_description','data-error-container' => '#AdDescription' ,'rows' => '5' ]) }}
@endif
@if($lang!='en')
{{ Form::text('lang['.$lang.'][content][meta_title]', $page->lang_translations->where('lang',$lang)->first()->content['meta_title']??'' ,['class' => 'form-control','id'=>'meta_title']) }}
@else
{{ Form::text('meta_title', $page->meta_title ,['class' => 'form-control','id'=>'meta_title']) }}
@endif
Page meta title is required
{{ Form::textarea('meta_keywords', $page->meta_keywords, ['class' => 'form-control','id'=>'meta_keywords','data-error-container' => '#meta_keywords' ,'rows' => '5' ]) }}
{{ Form::textarea('meta_description', $page->meta_description, ['class' => 'form-control', 'id' => 'meta_description', 'data-error-container' => '#meta_description', 'rows' => '5']) }}
{{ Form::radio('status', 1, ((int)$page->status == 1? true : null ), ['class' => 'md-radiobtn','id'=>'active']) }}
{{ Form::radio('status', 0, ((int)$page->status == 0? true : null ), ['class' => 'md-radiobtn','id'=>'deactive']) }}
{{ Form::text('page_image_title', $page->page_image_title ,['class' => 'form-control','id'=>'page_image_title']) }}
Page header title is required
.($page->page_image == ''?'/no_image.png':'/page/'.$page->page_image) }})
Select image
Change
{{ Form::file('page_image', ['id'=>'page_image' ,'accept' => 'image/PNG, image/png, image/jpg, image/JPG, image/JPEG, image/jpeg, image/GIF, image/gif']) }}
page_image == ""? 'data-dismiss = fileinput':'onClick = deleteImage()')}}> Remove
{{ Form::checkbox('header', 1, ((int)$page->header == 1? true : null ), ['id' => 'header']) }}
{{ Form::checkbox('main_menu', 1, ((int)$page->main_menu == 1? true : null ), ['id' => 'main_menu']) }}
{{ Form::checkbox('footer_one', 1, ((int)$page->footer_one == 1? true : null ), ['id' => 'footer_one']) }}
{{ Form::checkbox('footer_two', 1, ((int)$page->footer_two == 1? true : null ), ['id' => 'footer_two']) }}
{!! Form::select('link_target', $link_target, $page->link_target, ['class' => 'form-control', 'id' => 'link_target']) !!}
{!! Form::select('link_to', $link_to, $page->link_to, ['class' => 'form-control select2', 'id' => 'link_to']) !!}
{{ Form::text('external_link', $page->external_link ,['class' => 'form-control','id'=>'external_link']) }}
External Link Should be Appropriate