2018-01-12 05:07:11 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-sm-6">
|
|
|
|
{!! Form::label('flight_number', 'Flight Number/Route Code/Leg') !!}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4">
|
|
|
|
{!! Form::text('flight_number', null, ['placeholder' => 'Flight Number', 'class' => 'form-control']) !!}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('flight_number') }}</p>
|
2018-01-12 05:07:11 +08:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
{!! Form::text('route_code', null, ['placeholder' => 'Code (optional)', 'class' => 'form-control']) !!}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('route_code') }}</p>
|
2018-01-12 05:07:11 +08:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
{!! Form::text('route_leg', null, ['placeholder' => 'Leg (optional)', 'class' => 'form-control']) !!}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('route_leg') }}</p>
|
2018-01-12 05:07:11 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-04 05:29:34 +08:00
|
|
|
<div class="form-group col-sm-6">
|
2018-02-23 05:29:25 +08:00
|
|
|
<p class="description">Filed Using:</span>
|
|
|
|
{!! PirepSource::label($pirep->source) !!}
|
|
|
|
@if(filled($pirep->source_name))
|
|
|
|
({!! $pirep->source_name !!})
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-sm-3">
|
2017-12-04 05:29:34 +08:00
|
|
|
{!! Form::label('airline_id', 'Airline') !!}
|
2018-01-12 05:07:11 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
{!! Form::select('airline_id', $airlines, null, ['class' => 'form-control select2']) !!}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
|
2018-01-12 05:07:11 +08:00
|
|
|
</div>
|
2017-12-04 05:29:34 +08:00
|
|
|
</div>
|
2018-01-12 05:07:11 +08:00
|
|
|
</div>
|
2018-02-23 05:29:25 +08:00
|
|
|
<div class="form-group col-sm-3">
|
2017-12-04 05:29:34 +08:00
|
|
|
{!! Form::label('aircraft_id', 'Aircraft:') !!}
|
|
|
|
{!! Form::select('aircraft_id', $aircraft, null, ['class' => 'form-control select2']) !!}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('aircraft_id') }}</p>
|
2017-12-04 05:29:34 +08:00
|
|
|
</div>
|
2018-02-23 05:29:25 +08:00
|
|
|
<div class="form-group col-sm-3">
|
2017-12-04 05:29:34 +08:00
|
|
|
{!! Form::label('dpt_airport_id', 'Departure Airport:') !!}
|
|
|
|
{!! Form::select('dpt_airport_id', $airports, null, ['class' => 'form-control select2']) !!}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('dpt_airport_id') }}</p>
|
2017-12-04 05:29:34 +08:00
|
|
|
</div>
|
2017-06-29 08:54:05 +08:00
|
|
|
|
2018-02-23 05:29:25 +08:00
|
|
|
<div class="form-group col-sm-3">
|
2017-12-04 05:29:34 +08:00
|
|
|
{!! Form::label('arr_airport_id', 'Arrival Airport:') !!}
|
|
|
|
{!! Form::select('arr_airport_id', $airports, null, ['class' => 'form-control select2']) !!}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('arr_airport_id') }}</p>
|
2017-12-04 05:29:34 +08:00
|
|
|
</div>
|
2018-01-12 05:07:11 +08:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2017-12-04 05:29:34 +08:00
|
|
|
<!-- Flight Time Field -->
|
|
|
|
<div class="form-group col-sm-6">
|
|
|
|
{!! Form::label('flight_time', 'Flight Time (hours & minutes):') !!}
|
2018-01-12 05:07:11 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6">
|
2018-02-07 02:58:48 +08:00
|
|
|
{!! Form::number('hours', null, ['class' => 'form-control', 'placeholder' => 'hours', 'readonly' => $read_only]) !!}
|
2018-01-12 05:07:11 +08:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
2018-02-07 02:58:48 +08:00
|
|
|
{!! Form::number('minutes', null, ['class' => 'form-control', 'placeholder' => 'minutes', 'readonly' => $read_only]) !!}
|
2018-01-12 05:07:11 +08:00
|
|
|
</div>
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('hours') }}</p>
|
|
|
|
<p class="text-danger">{{ $errors->first('minutes') }}</p>
|
2017-12-04 05:29:34 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Level Field -->
|
|
|
|
<div class="form-group col-sm-6">
|
|
|
|
{!! Form::label('level', 'Flight Level:') !!}
|
2018-01-12 05:07:11 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
{!! Form::text('level', null, ['class' => 'form-control']) !!}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('level') }}</p>
|
2018-01-12 05:07:11 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-04 05:29:34 +08:00
|
|
|
</div>
|
2018-01-12 05:07:11 +08:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2017-12-04 05:29:34 +08:00
|
|
|
<!-- Route Field -->
|
|
|
|
<div class="form-group col-sm-6">
|
|
|
|
{!! Form::label('route', 'Route:') !!}
|
2018-01-12 05:07:11 +08:00
|
|
|
{!! Form::textarea('route', null, ['class' => 'form-control']) !!}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('route') }}</p>
|
2017-12-04 05:29:34 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 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>
|
2017-12-04 05:29:34 +08:00
|
|
|
</div>
|
2018-01-12 05:07:11 +08:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2017-12-04 05:29:34 +08:00
|
|
|
<div class="form-group col-sm-12">
|
|
|
|
<div class="pull-right">
|
2018-01-04 02:52:01 +08:00
|
|
|
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) !!}
|
|
|
|
<a href="{!! route('admin.pireps.index') !!}" class="btn btn-warn">Cancel</a>
|
2017-12-04 05:29:34 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-06-29 08:54:05 +08:00
|
|
|
</div>
|