2017-08-17 07:18:47 +08:00
|
|
|
<div class="row">
|
2017-08-24 03:19:05 +08:00
|
|
|
<div class="col-12">
|
|
|
|
<table class="table table-full-width">
|
|
|
|
<thead>
|
2017-08-17 07:18:47 +08:00
|
|
|
|
2017-08-24 03:19:05 +08:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>Airline</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group form-group">
|
|
|
|
{!! Form::select('airline_id', $airlines, null, ['class' => 'custom-select select2']) !!}
|
|
|
|
</div>
|
2018-01-24 05:48:30 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
|
2017-08-24 03:19:05 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2017-08-17 07:18:47 +08:00
|
|
|
|
2017-08-24 03:19:05 +08:00
|
|
|
<tr>
|
|
|
|
<td>Flight Number/Code/Leg</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group form-group" style="max-width: 400px;">
|
|
|
|
{!! Form::text('flight_number', null, ['placeholder' => 'Flight Number', 'class' => 'form-control']) !!}
|
|
|
|
{!! Form::text('route_code', null, ['placeholder' => 'Code (optional)', 'class' => 'form-control']) !!}
|
|
|
|
{!! Form::text('route_leg', null, ['placeholder' => 'Leg (optional)', 'class' => 'form-control']) !!}
|
|
|
|
</div>
|
2018-01-24 05:48:30 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('flight_number') }}</p>
|
|
|
|
<p class="text-danger">{{ $errors->first('route_code') }}</p>
|
|
|
|
<p class="text-danger">{{ $errors->first('route_leg') }}</p>
|
2017-08-24 03:19:05 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2017-08-17 07:18:47 +08:00
|
|
|
|
2017-08-24 03:19:05 +08:00
|
|
|
<tr>
|
|
|
|
<td>Aircraft</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group form-group">
|
|
|
|
{!! Form::select('aircraft_id', $aircraft, null, ['class' => 'custom-select select2']) !!}
|
|
|
|
</div>
|
2018-01-24 05:48:30 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('aircraft_id') }}</p>
|
2017-08-24 03:19:05 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2017-08-17 07:18:47 +08:00
|
|
|
|
2017-08-24 03:19:05 +08:00
|
|
|
<tr>
|
|
|
|
<td>Origin Airport</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group form-group">
|
|
|
|
{!! Form::select('dpt_airport_id', $airports, null, ['class' => 'custom-select select2']) !!}
|
|
|
|
</div>
|
2018-01-24 05:48:30 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('dpt_airport_id') }}</p>
|
2017-08-24 03:19:05 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2017-08-17 07:18:47 +08:00
|
|
|
|
2017-08-24 03:19:05 +08:00
|
|
|
<tr>
|
|
|
|
<td>Arrival Airport</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group form-group">
|
|
|
|
{!! Form::select('arr_airport_id', $airports, null, ['class' => 'custom-select select2']) !!}
|
|
|
|
</div>
|
2018-01-24 05:48:30 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('arr_airport_id') }}</p>
|
2017-08-24 03:19:05 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2017-08-17 07:18:47 +08:00
|
|
|
|
2017-08-24 03:19:05 +08:00
|
|
|
<tr>
|
|
|
|
<td class="align-text-top">Flight Time</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group" style="max-width: 200px;">
|
|
|
|
{!! Form::number('hours', null, ['class' => 'form-control', 'placeholder' => 'hours']) !!}
|
|
|
|
{!! Form::number('minutes', null, ['class' => 'form-control', 'placeholder' => 'minutes']) !!}
|
|
|
|
</div>
|
2018-01-24 05:48:30 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('hours') }}</p>
|
|
|
|
<p class="text-danger">{{ $errors->first('minutes') }}</p>
|
2017-08-24 03:19:05 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2017-08-17 07:18:47 +08:00
|
|
|
|
2017-08-24 03:19:05 +08:00
|
|
|
{{--
|
|
|
|
Write out the custom fields, and label if they're required
|
|
|
|
--}}
|
2018-01-24 05:48:30 +08:00
|
|
|
@foreach($pirep_fields as $field)
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
{!! $field->name !!}
|
|
|
|
@if($field->required === true)
|
|
|
|
<span class="text-danger">*</span>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group form-group">
|
|
|
|
{!! Form::text($field->slug, null, [
|
|
|
|
'class' => 'form-control'
|
|
|
|
]) !!}
|
|
|
|
</div>
|
|
|
|
<p class="text-danger">{{ $errors->first($field->slug) }}</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
|
2017-08-24 03:19:05 +08:00
|
|
|
<tr>
|
2018-01-24 05:48:30 +08:00
|
|
|
<td class="align-text-top">Route</td>
|
2017-08-24 03:19:05 +08:00
|
|
|
<td>
|
|
|
|
<div class="input-group form-group">
|
2018-01-24 05:48:30 +08:00
|
|
|
{!! Form::textarea('route', null, ['class' => 'form-control', 'placeholder' => 'Route']) !!}
|
2017-08-24 03:19:05 +08:00
|
|
|
</div>
|
2018-01-24 05:48:30 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('route') }}</p>
|
2017-08-24 03:19:05 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2017-08-17 07:18:47 +08:00
|
|
|
|
2017-08-24 03:19:05 +08:00
|
|
|
<tr>
|
|
|
|
<td class="align-text-top"><p class="">Notes</p></td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group form-group">
|
|
|
|
{!! Form::textarea('notes', null, ['class' => 'form-control', 'placeholder' => 'Notes']) !!}
|
|
|
|
</div>
|
2018-01-24 05:48:30 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('notes') }}</p>
|
2017-08-24 03:19:05 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-08-17 07:18:47 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="float-right">
|
|
|
|
<div class="form-group">
|
|
|
|
{!! Form::submit('Submit PIREP', ['class' => 'btn btn-primary']) !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|