Add the validation error fields in the templates
This commit is contained in:
@@ -2,21 +2,25 @@
|
||||
<div class="form-group col-sm-6">
|
||||
{!! Form::label('airline_id', 'Airline:') !!}
|
||||
{!! Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) !!}
|
||||
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-6">
|
||||
{!! Form::label('name', 'Name:') !!}
|
||||
{!! Form::text('name', null, ['class' => 'form-control']) !!}
|
||||
<p class="text-danger">{{ $errors->first('name') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-6">
|
||||
{!! Form::label('type', 'Type:') !!}
|
||||
{!! Form::text('type', null, ['class' => 'form-control']) !!}
|
||||
<p class="text-danger">{{ $errors->first('type') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-6">
|
||||
{!! Form::label('fuel_type', 'Fuel Type:') !!}
|
||||
{!! Form::select('fuel_type', $fuel_types, null , ['class' => 'form-control select2']) !!}
|
||||
<p class="text-danger">{{ $errors->first('fuel_type') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-12">
|
||||
|
||||
Reference in New Issue
Block a user