@extends('layouts.admin') @section('css') @endsection @section('content')
{{isset($AlertEdit)?'Edit':'New'}} Flash News
@include('inc.messages')
@if(isset($AlertEdit)) {!! Form::model($AlertEdit,['method'=>'put','files'=>true,'class'=>'form-horizontal']) !!} @else {!! Form::open(['action','FlashNewsController@create','class'=>'form-horizontal','role'=>'form','enctype'=>'multipart/form-data','files'=>true]) !!} @endif
{!! Form::label("title","Title",["class"=>"control-label col-md-2 col-lg-2"]) !!}
{!! Form::text("title",isset($AlertEdit)?$AlertEdit->title:null,["class"=>"form-control".($errors->has('title')?" is-invalid":"") ,"autofocus" ,"placeholder"=>"Enter Title Here" ]) !!}
{!! Form::label("link","link",["class"=>"control-label col-md-2 col-lg-2"]) !!}
{!! Form::text("link",isset($AlertEdit)?$AlertEdit->link:null,["class"=>"form-control".($errors->has('link')?" is-invalid":"") ,"autofocus" ,"placeholder"=>"Enter Link", ]) !!}
{!! Form::label("status","Status",["class"=>"control-label col-md-2 col-lg-2"]) !!}
@if(isset($AlertEdit)) {!! Form::label("ordering","Ordering",["class"=>"control-label col-md-2 col-lg-2"]) !!}
{!! Form::number("ordering",isset($AlertEdit)?$AlertEdit->ordering:null,["class"=>"form-control input-inline input-small".($errors->has('ordering')?" is-invalid":"") ,"autofocus" ,"placeholder"=>"Order", ]) !!}
@endif
{!! Form::label("alert_description","Description",["class"=>"control-label col-md-2 col-lg-2"]) !!}
{!! Form::textarea('alert_description',isset($AlertEdit)?$AlertEdit->description:null, ['id' => 'alert_description', 'rows' => 2, 'cols' => 88, 'style' => 'resize:none']) !!}
to
Select date range
{!! Form::label("image","Select image",["class"=>"control-label col-md-2", "for"=>"exampleInputFile"]) !!}
{!! Form::file("image",["class"=>"form-control","style"=>"display:none",]) !!}
{{isset($AlertEdit)?'Change':'Add'}} | Remove {{ Form::hidden('remove',0,['id'=>'remove'] ) }}
{{ Form::button(' Save', ['type' => 'submit', 'name'=>'btnSave', 'class' =>'btn btn-sm red'] ) }}
@endsection @section('scripts') @endsection