@extends('layouts.admin') @section('content')
{{isset($PageEdit)?'Edit':'New'}} Page
@include('inc.messages')
@if(isset($PageEdit)) {!! Form::model($PageEdit,['method'=>'put','files'=>true,'class'=>'form-horizontal']) !!} @else {!! Form::open(['action','pagesController@create','class'=>'form-horizontal','role'=>'form','enctype'=>'multipart/form-data','files'=>true]) !!} @endif
{!! Form::label("title","Title",["class"=>"control-label col-md-2"]) !!}
{!! Form::text("title",isset($PageEdit)?$PageEdit->title:null,["class"=>"form-control".($errors->has('title')?" is-invalid":"") ,"autofocus" ,"placeholder"=>"Enter Title here" ,"required"]) !!}
{!! Form::label("alias","Alias (URL)",["class"=>"control-label col-md-2"]) !!}
{!! Form::text("alias",isset($PageEdit)?$PageEdit->alias:null,["class"=>"form-control".($errors->has('alias')?" is-invalid":"") ,"autofocus" ,"placeholder"=>"Enter Alias here" ,"required", isset($PageEdit)?"readonly":null]) !!}
{{--
{!! Form::label("status","Select Status",["class"=>"control-label col-md-2"]) !!}
{{Form::select("status",[ '1' => 'Enable', '0' => 'Disable' ] ,(isset($ProjectEdit)?$ProjectEdit->status:null) , [ "class" => "bs-select form-control", "placeholder" => "Select Status" ]) }}
--}}
{!! Form::label("website","Website",["class"=>"control-label col-md-2"]) !!}
{!! Form::text("website",isset($PageEdit)?$PageEdit->website:null,["class"=>"form-control".($errors->has('website')?" is-invalid":"") ,"autofocus" ,"placeholder"=>"Enter Website here" ,"required"]) !!}
{!! Form::label("status","Status",["class"=>"control-label col-md-3 col-lg-2"]) !!}
{!! Form::label("description","Enter Description",["class"=>"control-label col-md-2"]) !!}
{!! Form::textarea('description', null, ['id' => 'description', 'rows' => 4, 'cols' => 54, 'style' => 'resize:none']) !!}
{!! Form::label("image","Select image",["class"=>"control-label col-md-2", "for"=>"exampleInputFile"]) !!}
{!! Form::file("image",["class"=>"form-control","style"=>"display:none"]) !!}
{{isset($PageEdit)?'Change':'Add'}} | Remove {{ Form::hidden('remove',0 ) }}

SEO


{!! Form::label("meta_title","Meta Title",["class"=>"control-label col-md-2"]) !!}
{!! Form::text("meta_title",isset($PageEdit)?$PageEdit->meta_title:null,["class"=>"form-control".($errors->has('title')?" is-invalid":"") ,"autofocus" ,"placeholder"=>"Enter meta Title here" ]) !!}
{!! Form::label("meta_description","Meta Description",["class"=>"control-label col-md-2"]) !!}
{!! Form::textarea('meta_description', isset($PageEdit)?$PageEdit->meta_description:null, [ 'class'=>'form-control','rows' => 2, 'cols' => 88, 'style' => 'resize:none','placeholder'=>'Enter Meta Description']) !!}
{!! Form::label("meta_keywords","Meta Keywords",["class"=>"control-label col-md-2"]) !!}
{!! Form::textarea('meta_keywords', isset($PageEdit)?$PageEdit->meta_keywords:null, [ 'class'=>'form-control','rows' => 2, 'cols' => 88, 'style' => 'resize:none','placeholder'=>'Enter Meta Keywords']) !!}
{{ Form::button(' Save', ['type' => 'submit', 'name'=>'btnSave', 'class' =>'btn red btn-sm'] ) }}
{{ Form::close() }}
@endsection @section('scripts') @if(isset($PageEdit)) @else @endif @endsection