2017-06-18 06:25:36 +08:00
|
|
|
<!-- Airline Id Field -->
|
2017-11-01 23:08:36 +08:00
|
|
|
<div class="row">
|
2018-01-01 04:20:52 +08:00
|
|
|
<div class="form-group col-sm-3">
|
|
|
|
{!! Form::label('airline_id', 'Airline:') !!} <span class="required">*</span>
|
2017-11-01 23:08:36 +08:00
|
|
|
{!! Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) !!}
|
2018-01-01 04:20:52 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
|
2017-11-01 23:08:36 +08:00
|
|
|
</div>
|
2017-06-18 06:25:36 +08:00
|
|
|
|
2017-11-01 23:08:36 +08:00
|
|
|
<!-- Flight Number Field -->
|
2018-01-01 04:20:52 +08:00
|
|
|
<div class="form-group col-sm-3">
|
|
|
|
{!! Form::label('flight_number', 'Flight Number:') !!} <span class="required">*</span>
|
2017-11-01 23:08:36 +08:00
|
|
|
{!! Form::text('flight_number', null, ['class' => 'form-control']) !!}
|
2018-01-01 04:20:52 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('flight_number') }}</p>
|
2017-11-01 23:08:36 +08:00
|
|
|
</div>
|
2017-06-18 06:25:36 +08:00
|
|
|
|
2017-11-01 23:08:36 +08:00
|
|
|
<!-- Route Code Field -->
|
2018-01-01 04:20:52 +08:00
|
|
|
<div class="form-group col-sm-3">
|
2017-11-01 23:08:36 +08:00
|
|
|
{!! Form::label('route_code', 'Route Code:') !!}
|
2018-01-03 03:10:00 +08:00
|
|
|
{!! Form::text('route_code', null, ['class'=>'form-control', 'placeholder'=>'optional']) !!}
|
2018-01-24 11:58:13 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('route_code') }}</p>
|
2017-11-01 23:08:36 +08:00
|
|
|
</div>
|
2017-06-18 06:25:36 +08:00
|
|
|
|
2017-11-01 23:08:36 +08:00
|
|
|
<!-- Route Leg Field -->
|
2018-01-01 04:20:52 +08:00
|
|
|
<div class="form-group col-sm-3">
|
2017-11-01 23:08:36 +08:00
|
|
|
{!! Form::label('route_leg', 'Route Leg:') !!}
|
2018-01-03 03:10:00 +08:00
|
|
|
{!! Form::text('route_leg', null, ['class'=>'form-control', 'placeholder'=>'optional']) !!}
|
2018-01-24 11:58:13 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('route_leg') }}</p>
|
2017-11-01 23:08:36 +08:00
|
|
|
</div>
|
2017-06-18 06:25:36 +08:00
|
|
|
</div>
|
|
|
|
|
2017-07-12 06:44:12 +08:00
|
|
|
<!--
|
|
|
|
SAME ROW
|
|
|
|
-->
|
|
|
|
|
2017-11-01 23:08:36 +08:00
|
|
|
<div class="row">
|
2018-01-30 10:51:00 +08:00
|
|
|
|
|
|
|
<div class="form-group col-sm-3">
|
|
|
|
{!! Form::label('level', 'Flight Type:') !!}
|
|
|
|
{!! Form::select('flight_type', $flight_types, null, ['class' => 'form-control select2']) !!}
|
|
|
|
<p class="text-danger">{{ $errors->first('flight_type') }}</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group col-sm-3">
|
2018-01-01 04:20:52 +08:00
|
|
|
{!! Form::label('dpt_airport_id', 'Departure Airport:') !!} <span class="required">*</span>
|
2017-11-01 23:08:36 +08:00
|
|
|
{!! Form::select('dpt_airport_id', $airports, null , ['class' => 'form-control select2']) !!}
|
2018-01-01 04:20:52 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('dpt_airport_id') }}</p>
|
2017-11-01 23:08:36 +08:00
|
|
|
</div>
|
2017-06-18 06:25:36 +08:00
|
|
|
|
2017-11-01 23:08:36 +08:00
|
|
|
<!-- Arr Airport Id Field -->
|
2018-01-30 10:51:00 +08:00
|
|
|
<div class="form-group col-sm-3">
|
2018-01-01 04:20:52 +08:00
|
|
|
{!! Form::label('arr_airport_id', 'Arrival Airport:') !!} <span class="required">*</span>
|
2017-11-01 23:08:36 +08:00
|
|
|
{!! Form::select('arr_airport_id', $airports, null , ['class' => 'form-control select2']) !!}
|
2018-01-01 04:20:52 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('arr_airport_id') }}</p>
|
2017-11-01 23:08:36 +08:00
|
|
|
</div>
|
2017-06-18 06:25:36 +08:00
|
|
|
|
2017-11-01 23:08:36 +08:00
|
|
|
<!-- Alt Airport Id Field -->
|
2018-01-30 10:51:00 +08:00
|
|
|
<div class="form-group col-sm-3">
|
2017-11-01 23:08:36 +08:00
|
|
|
{!! Form::label('alt_airport_id', 'Alt Airport:') !!}
|
|
|
|
{!! Form::select('alt_airport_id', $airports, null , ['class' => 'form-control select2']) !!}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('alt_airport_id') }}</p>
|
2017-11-01 23:08:36 +08:00
|
|
|
</div>
|
2017-06-18 06:25:36 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2017-11-01 23:08:36 +08:00
|
|
|
<div class="row">
|
2018-01-30 10:51:00 +08:00
|
|
|
|
2018-01-04 11:40:05 +08:00
|
|
|
<div class="form-group col-sm-3">
|
2018-01-01 04:20:52 +08:00
|
|
|
{!! Form::label('dpt_time', 'Departure Time:') !!}
|
|
|
|
{!! Form::text('dpt_time', null, ['class' => 'form-control']) !!}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('dpt_time') }}</p>
|
2018-01-01 04:20:52 +08:00
|
|
|
</div>
|
2017-06-18 06:25:36 +08:00
|
|
|
|
2018-01-04 11:40:05 +08:00
|
|
|
<div class="form-group col-sm-3">
|
2018-01-01 04:20:52 +08:00
|
|
|
{!! Form::label('arr_time', 'Arrival Time:') !!}
|
|
|
|
{!! Form::text('arr_time', null, ['class' => 'form-control']) !!}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('arr_time') }}</p>
|
2018-01-01 04:20:52 +08:00
|
|
|
</div>
|
2018-01-04 11:40:05 +08:00
|
|
|
|
2018-01-30 10:51:00 +08:00
|
|
|
<div class="form-group col-sm-2">
|
|
|
|
{!! Form::label('level', 'Flight Level:') !!}
|
|
|
|
{!! Form::text('level', null, ['class' => 'form-control']) !!}
|
|
|
|
<p class="text-danger">{{ $errors->first('level') }}</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group col-sm-2">
|
2018-01-04 11:40:05 +08:00
|
|
|
{!! Form::label('distance', 'Distance:') !!}
|
|
|
|
{!! Form::text('distance', null, ['class' => 'form-control']) !!}
|
2018-01-24 11:58:13 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('distance') }}</p>
|
2018-01-04 11:40:05 +08:00
|
|
|
</div>
|
|
|
|
|
2018-01-30 10:51:00 +08:00
|
|
|
<div class="form-group col-sm-2">
|
2018-01-04 11:40:05 +08:00
|
|
|
{!! Form::label('level', 'Flight Level:') !!}
|
|
|
|
{!! Form::text('level', null, ['class' => 'form-control']) !!}
|
2018-01-24 11:58:13 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('level') }}</p>
|
2018-01-04 11:40:05 +08:00
|
|
|
</div>
|
2017-11-01 23:08:36 +08:00
|
|
|
</div>
|
2017-06-18 06:25:36 +08:00
|
|
|
|
2017-11-01 23:08:36 +08:00
|
|
|
<div class="row">
|
2018-01-01 04:20:52 +08:00
|
|
|
<!-- Route Field -->
|
|
|
|
<div class="form-group col-sm-6">
|
|
|
|
{!! Form::label('route', 'Route:') !!}
|
|
|
|
{!! Form::textarea('route', null, ['class' => 'form-control']) !!}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('route') }}</p>
|
2018-01-01 04:20:52 +08:00
|
|
|
</div>
|
2017-06-18 06:25:36 +08:00
|
|
|
|
2018-01-01 04:20:52 +08:00
|
|
|
<!-- Notes Field -->
|
|
|
|
<div class="form-group col-sm-6">
|
|
|
|
{!! Form::label('notes', 'Notes:') !!}
|
|
|
|
{!! Form::textarea('notes', null, ['class' => 'form-control']) !!}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('notes') }}</p>
|
2018-01-01 04:20:52 +08:00
|
|
|
</div>
|
2017-11-01 23:08:36 +08:00
|
|
|
</div>
|
2017-06-18 06:25:36 +08:00
|
|
|
|
2017-11-01 23:08:36 +08:00
|
|
|
<div class="row">
|
2018-01-01 04:20:52 +08:00
|
|
|
<!-- Active Field -->
|
|
|
|
<div class="col-sm-4">
|
|
|
|
{!! Form::label('active', 'Active:') !!}
|
|
|
|
@if($flight!==null)
|
|
|
|
{!! Form::checkbox('active', $flight->active, ['class' => 'form-control icheck']) !!}
|
|
|
|
@else
|
|
|
|
{!! Form::checkbox('active', null, ['class' => 'form-control icheck']) !!}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<div class="col-8">
|
|
|
|
<div class="text-right">
|
2018-01-04 02:52:01 +08:00
|
|
|
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) !!}
|
2017-11-01 23:08:36 +08:00
|
|
|
<a href="{!! route('admin.flights.index') !!}" class="btn btn-default">Cancel</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-06-18 06:25:36 +08:00
|
|
|
</div>
|