{!! 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:') !!} * {!! Form::text('flight_number', null, ['class' => 'form-control']) !!}

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

{!! Form::label('route_code', 'Route Code:') !!} {!! Form::text('route_code', null, ['class'=>'form-control', 'placeholder'=>'optional']) !!}

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

{!! Form::label('route_leg', 'Route Leg:') !!} {!! Form::text('route_leg', null, ['class'=>'form-control', 'placeholder'=>'optional']) !!}

{{ $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('dpt_airport_id', 'Departure Airport:') !!} * {!! Form::select('dpt_airport_id', $airports, null , ['class' => 'form-control select2']) !!}

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

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

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

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

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

{!! 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') }}

{!! Form::label('flight_time', 'Flight Time (hours & minutes):') !!}
{!! Form::number('hours', null, ['class' => 'form-control', 'placeholder' => 'hours']) !!}
{!! Form::number('minutes', null, ['class' => 'form-control', 'placeholder' => 'minutes']) !!}

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

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

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

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

{!! Form::label('distance', 'Distance:') !!} in miles {!! Form::text('distance', null, ['class' => 'form-control']) !!}

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

{!! Form::label('route', 'Route:') !!} {!! Form::textarea('route', null, ['class' => 'form-control']) !!}

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

{!! Form::label('notes', 'Notes:') !!} {!! Form::textarea('notes', null, ['class' => 'form-control']) !!}

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

{!! Form::label('active', 'Active:') !!} {!! Form::hidden('active', 0, false) !!} @if($flight!==null) {!! Form::checkbox('active', $flight->active, ['class' => 'form-control icheck']) !!} @else {!! Form::checkbox('active', null, ['class' => 'form-control icheck']) !!} @endif
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) !!} Cancel