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

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

Edit Announcement


{!! Form::model($announcement, ['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' => ['announcement.update', $announcement->id]]) !!}
{!! Form::text('title', null, array('placeholder' => 'Title','required' => 'required','class' => 'form-control col-md-7 col-xs-12')) !!}
{!! ($errors->has('title') ? $errors->first('title', '

:message

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

:message

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

:message

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