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