{!! 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('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']) !!}
{!! Form::label('dpt_time', 'Departure Time:') !!} {!! Form::text('dpt_time', null, ['class' => 'form-control']) !!}
{!! Form::label('arr_time', 'Arrival Time:') !!} {!! Form::text('arr_time', null, ['class' => 'form-control']) !!}
{!! Form::label('distance', 'Distance:') !!} {!! Form::text('distance', null, ['class' => 'form-control']) !!}

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

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

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

{!! Form::label('route', 'Route:') !!} {!! Form::textarea('route', null, ['class' => 'form-control']) !!}
{!! Form::label('notes', 'Notes:') !!} {!! Form::textarea('notes', null, ['class' => 'form-control']) !!}
{!! 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
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) !!} Cancel