@if(isset($cms))
{{ Form::model($cms, ['route' => ['backend.cms.update',$cms->id], 'method' => 'patch','class'=>'form-horizontal form-material','data-parsley-validate'=>'','autocomplete'=>'off','enctype'=>'multipart/form-data','id'=>'cmsForm']) }}
@else
{{ Form::open(['route' => 'backend.cms.store','class'=>'form-horizontal form-material','data-parsley-validate'=>'','method'=>'POST','autocomplete'=>'off','enctype'=>'multipart/form-data','id'=>'cmsForm']) }}
@endif
CMS Pages Details
Details of CMS Pages
@php
$class = 'form-control';
$title = 'form-control';
@endphp
@if(!isset($cms))
@php
$class .= ' cms-slug';
$title .= ' cms-title';
@endphp
@endif
{{ Form::text('title',Input::old('title'),['class'=> $title ,'data-parsley-required'=>'true','autofocus'=>'true']) }}
@if(isset($errors) && $errors->first('title'))
{{ $errors->first('title') }}
@endif
{{ Form::text('slug',Input::old('slug'),['class'=>$class,'data-parsley-required'=>'false','autofocus'=>'true']) }}
@if(isset($errors) && $errors->first('slug'))
{{ $errors->first('slug') }}
@endif
{{ Form::textarea('description',Input::old('description'),['class'=>'form-control ckeditor','id'=>'description','autofocus'=>'true']) }}
@if(isset($errors) && $errors->first('description'))
{{ $errors->first('description') }}
@endif
{{ Form::text('seo_title',Input::old('seo_title'),['class'=>'form-control','data-parsley-required'=>'false','autofocus'=>'true']) }}
@if(isset($errors) && $errors->first('seo_title'))
{{ $errors->first('seo_title') }}
@endif
{{ Form::text('seo_keywords',Input::old('seo_keywords'),['class'=>'form-control','data-role'=>'tagsinput','data-parsley-required'=>'false','autofocus'=>'true']) }}
@if(isset($errors) && $errors->first('seo_keywords'))
{{ $errors->first('seo_keywords') }}
@endif
Comma seperated
{{ Form::textarea('seo_description',Input::old('seo_description'),['class'=>'form-control','data-parsley-required'=>'false','autofocus'=>'true']) }}
@if(isset($errors) && $errors->first('seo_description'))
{{ $errors->first('seo_description') }}
@endif
@if(isset($cms))
{{ Form::hidden('id',$cms->id) }}
@endif
Status
{{ Form::checkbox('status',1,null,['data-on-color'=>'info','data-off-color'=>'danger']) }}
Visible
{{ Form::checkbox('visible',1,null,['data-on-color'=>'info','data-on-text'=>'Public','data-off-text'=>'Private','data-off-color'=>'danger']) }}
{{ Form::close() }}