@extends('layouts.admin') @section('content')
{{isset($ProjectEdit)?'Edit':'New'}} Project
@include('inc.messages')
@if(isset($ProjectEdit)) {!! Form::model($ProjectEdit,['method'=>'put','files'=>true,'class'=>'form-horizontal']) !!} @else {!! Form::open(['action','projectsController@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($ProjectEdit)?$ProjectEdit->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($ProjectEdit)?$ProjectEdit->alias:null,["class"=>"form-control".($errors->has('alias')?" is-invalid":"") ,"autofocus" ,"placeholder"=>"Enter Alias here" ,"required", isset($ProjectEdit)?"readonly":null]) !!}
{!! Form::label("website","Website",["class"=>"control-label col-md-2"]) !!}
{!! Form::text("website",isset($ProjectEdit)?$ProjectEdit->website:null,["class"=>"form-control".($errors->has('website')?" is-invalid":"") ,"autofocus" ,"placeholder"=>"Enter Website here" ,"required"]) !!}
{!! Form::label("broucher_link","Broucher Link",["class"=>"control-label col-md-2"]) !!}
{!! Form::text("broucher_link",isset($ProjectEdit)?$ProjectEdit->broucher_link:null,["class"=>"form-control".($errors->has('broucher_link')?" is-invalid":"") ,"autofocus" ,"placeholder"=>"Enter Broucher Link here" ]) !!}
{!! Form::label("project_status","Project Status",["class"=>"control-label col-md-2"]) !!}
{{Form::select("project_status",[ 'current' => 'Current', 'upcoming' => 'Up coming' ] ,(isset($ProjectEdit)?$ProjectEdit->project_status:null) , [ "class" => "bs-select form-control", "placeholder" => "Select Project Status" ]) }}
{!! Form::label("status","Status",["class"=>"control-label col-md-3 col-lg-2"]) !!}
{!! Form::label("short_description","Short Description",["class"=>"control-label col-md-2"]) !!}
{!! Form::textarea('short_description', isset($ProjectEdit)?$ProjectEdit->short_description:null, [ 'class'=>'form-control','rows' => 2, 'cols' => 110, 'style' => 'resize:none','placeholder'=>'Enter Short Description']) !!}
{!! Form::label("description","Enter Description",["class"=>"control-label col-md-2"]) !!}
{!! Form::textarea('description', isset($ProjectEdit)?$ProjectEdit->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($ProjectEdit)?'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($ProjectEdit)?$ProjectEdit->meta_title:null,["class"=>"form-control".($errors->has('title')?" is-invalid":"") ,"autofocus" ,"placeholder"=>"Enter meta Title here" ]) !!}
{!! Form::label("meta_description","Enter Meta Description",["class"=>"control-label col-md-2"]) !!}
{!! Form::textarea('meta_description', isset($ProjectEdit)?$ProjectEdit->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($ProjectEdit)?$ProjectEdit->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($ProjectEdit)) @else @endif @endsection