@extends('admin.layouts.master') @section('headerFiles') TABCFast | Edit Page @endsection @section('content')
@include('admin/includes/front_alerts')
{!! Form::open([ 'url' => 'admin/cms/pages/'. $page->page_id,'files'=>true, 'id' => '']) !!}
Add Page
@foreach(config('app.lang_options')??['en'] as $index=>$lang)
@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
@endforeach
{{ 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']) }}
@if($page->template_id== 0 )
{{ Form::text('page_image_title', $page->page_image_title ,['class' => 'form-control','id'=>'page_image_title']) }} Page header title is required

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
@endif
{{ 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::close()!!}
@endsection @section('footerScripts')