@extends('layouts.admin') @section('content')
{{isset($EventEdit)?'Edit':'New'}} Event
@include('inc.messages')
@if(isset($EventEdit)) {!! Form::model($EventEdit,['method'=>'put','files'=>true,'class'=>'form-horizontal']) !!} @else {!! Form::open(['action','eventsController@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($EventEdit)?$EventEdit->title:null,["class"=>"form-control".($errors->has('title')?" is-invalid":"") ,"autofocus" ,'maxlength'=>61 ,"placeholder"=>"Enter Title here" ,"required"]) !!}
{!! Form::label("alias","Alias (URL)",["class"=>"control-label col-md-2"]) !!}
{!! Form::text("alias",isset($EventEdit)?$EventEdit->alias:null,["class"=>"form-control".($errors->has('alias')?" is-invalid":"") ,"autofocus" ,"placeholder"=>"Enter alias here" ,"required", isset($EventEdit)?"readonly":null ]) !!}
{!! Form::label("event_date","Event Date",["class"=>"control-label col-md-2"]) !!}
{{ Form::text('event_date', isset($EventEdit)?$EventEdit->event_date:null, ['class' => 'form-control', 'id'=>'datetimepicker']) }}
Select date
{{-- {!! Form::label("link","Enter Link",["class"=>"control-label col-md-2"]) !!}
{!! Form::text("link",isset($EventEdit)?$EventEdit->link:null,["class"=>"form-control input-inline input-medium".($errors->has('link')?" is-invalid":"") ,"autofocus" ,"placeholder"=>"Enter Link here" ,"required"]) !!}
--}}
{!! Form::label("status","Status",["class"=>"control-label col-md-3 col-lg-2"]) !!}
{{--
{!! Form::label("status","Select Status",["class"=>"control-label col-md-2"]) !!}
{{Form::select("status",[ '1' => 'Enable', '0' => 'Disable' ] ,(isset($EventEdit)?$EventEdit->status:null) , [ "class" => "bs-select form-control", "placeholder" => "Select Status" ]) }}
--}}
{!! Form::label("short_description","Enter Short Description",["class"=>"control-label col-md-2"]) !!}
{!! Form::textarea('short_description', isset($EventEdit)?$EventEdit->short_description:null, [ 'class'=>'form-control','rows' => 2, 'cols' => 88, 'maxlength'=>60, 'style' => 'resize:none','placeholder'=>'Enter Short Description']) !!}
{!! Form::label("description","Enter Description",["class"=>"control-label col-md-2"]) !!}
{!! Form::textarea('description', isset($EventEdit)?$EventEdit->description:null, ['id' => 'description', 'rows' => 2, 'cols' => 88, 'style' => 'resize:none','placeholder'=>'Enter Description']) !!}
{!! Form::label("image","Select image",["class"=>"control-label col-md-2", "for"=>"exampleInputFile"]) !!}
{!! Form::file("image",["class"=>"form-control","style"=>"display:none",]) !!}
{{isset($EventEdit)?'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($EventEdit)?$EventEdit->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($EventEdit)?$EventEdit->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($EventEdit)?$EventEdit->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($EventEdit)) @else @endif @endsection