Flight Information
{{ Form::label('airline_id', 'Airline:') }} * {{ Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) }}

{{ $errors->first('airline_id') }}

{{ Form::label('flight_number', 'Flight Number/Code/Leg') }} *
{{ Form::text('flight_number', null, ['class' => 'form-control', 'style' => 'width: 33%']) }} {{ Form::text('route_code', null, ['class'=>'form-control', 'placeholder'=>'optional', 'style' => 'width: 33%']) }} {{ Form::text('route_leg', null, ['class'=>'form-control', 'placeholder'=>'optional', 'style' => 'width: 33%']) }}

{{ $errors->first('flight_number') }}

{{ $errors->first('route_code') }}

{{ $errors->first('route_leg') }}

{{ Form::label('level', 'Flight Type:') }} * {{ Form::select('flight_type', $flight_types, null, ['class' => 'form-control select2']) }}

{{ $errors->first('flight_type') }}

{{ Form::label('flight_time', 'Flight Time (hours & minutes)') }}
{{ Form::number('hours', null, [ 'class' => 'form-control', 'placeholder' => 'hours', 'style' => 'width: 50%', 'min' => '0', ]) }} {{ Form::number('minutes', null, [ 'class' => 'form-control', 'placeholder' => 'minutes', 'style' => 'width: 50%', 'min' => '0', ]) }}

{{ $errors->first('hours') }}

{{ $errors->first('minutes') }}

{{-- NEXT ROW --}}
{{ Form::label('dpt_airport_id', 'Departure Airport:') }} * {{ Form::select('dpt_airport_id', $airports, null , [ 'id' => 'dpt_airport_id', 'class' => 'form-control select2' ]) }}

{{ $errors->first('dpt_airport_id') }}

{{ Form::label('arr_airport_id', 'Arrival Airport:') }} * {{ Form::select('arr_airport_id', $airports, null , [ 'id' => 'arr_airport_id', 'class' => 'form-control select2 select2' ]) }}

{{ $errors->first('arr_airport_id') }}

{{ Form::label('alt_airport_id', 'Alt Airport:') }} {{ Form::select('alt_airport_id', $alt_airports, null , ['class' => 'form-control select2']) }}

{{ $errors->first('alt_airport_id') }}

{{-- NEXT ROW --}}
{{ Form::label('load_factor', 'Load Factor:') }} {{ Form::text('load_factor', null, ['class' => 'form-control']) }}

{{ $errors->first('load_factor') }}

@component('admin.components.info') Value between 1 and 100. See docs. Leave blank to use the default value. @endcomponent
{{ Form::label('load_factor_variance', 'Load Factor Variance:') }} {{ Form::text('load_factor_variance', null, ['class' => 'form-control']) }}

{{ $errors->first('load_factor_variance') }}

@component('admin.components.info') How much the load factor can vary per flight (+ or -). Leave blank to use the default value. @endcomponent
{{ Form::label('distance', 'Distance:') }} in nautical miles Calculate {{ Form::text('distance', null, ['id' => 'distance', 'class' => 'form-control']) }}

{{ $errors->first('distance') }}

 Scheduling
{{ Form::label('start_date', 'Start Date') }} optional {{ Form::text('start_date', null, ['id' => 'start_date', 'class' => 'form-control']) }}
{{ Form::label('end_date', 'End Date') }} optional {{ Form::text('end_date', null, ['id' => 'end_date', 'class' => 'form-control']) }}
{{ Form::label('days', 'Days of Week') }} optional
{{ Form::label('dpt_time', 'Departure Time:') }} {{ Form::text('dpt_time', null, ['class' => 'form-control']) }}

{{ $errors->first('dpt_time') }}

{{ Form::label('arr_time', 'Arrival Time:') }} {{ Form::text('arr_time', null, ['class' => 'form-control']) }}

{{ $errors->first('arr_time') }}

 Route
{{ Form::textarea('route', null, [ 'class' => 'form-control input-text', 'style' => 'padding: 10px', ]) }}

{{ $errors->first('route') }}

{{ Form::label('level', 'Flight Level:') }} {{ Form::text('level', null, ['class' => 'form-control']) }}

{{ $errors->first('level') }}

 Remarks
{{ Form::textarea('notes', null, [ 'class' => 'form-control input-text', 'style' => 'padding: 10px', ]) }}

{{ $errors->first('notes') }}

{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }} Cancel