@if (count($errors) > 0)
Whoops! There were some problems with your input.

    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Edi Diary


{!! Form::model($dairy, ['method' => 'PATCH','accept-charset' => "UTF-8" ,'role' => 'form' , 'enctype' => 'multipart/form-data' , 'data-parsley-validate' , 'id' => 'demo-form2', 'class' => 'form-horizontal form-label-left','route' => ['dairy.update', $dairy->id]]) !!}
{!! Form::text('title', null, array('required' =>'required','placeholder' => 'Title','class' => 'form-control')) !!}
{!! ($errors->has('title') ? $errors->first('title', '

:message

') : '') !!}
{!! Form::textarea('description',null, array('required' =>'required','placeholder' => 'Description','class' => 'form-control col-md-7 col-xs-12' , 'rows' => '3')) !!}
{!! ($errors->has('description') ? $errors->first('description', '

:message

') : '') !!}
{!! Form::select('priority',$priority,null, array('class' => 'select2_single form-control col-md-7 col-xs-12','required' =>'required')) !!}
{!! ($errors->has('priority') ? $errors->first('priority', '

:message

') : '') !!}
{!! Form::file('image',null, array('class' => 'form-control col-md-7 col-xs-12')) !!}
{!! ($errors->has('image') ? $errors->first('photo', '

:message

') : '') !!}
{!! Form::date('date_time', null, array('required' =>'required','placeholder' => 'Date time','class' => 'form-control')) !!}
{!! ($errors->has('date_time') ? $errors->first('date_time', '

:message

') : '') !!}
{!! Form::select('status', ['Pending' => 'Pending','Complete'=>'Complete'], null,array('class' => 'select2_single form-control col-md-7 col-xs-12')) !!}
{!! ($errors->has('status') ? $errors->first('status', '

:message

') : '') !!}
{!! Form::close() !!}