fares

   Fares assigned to the current flight. These can be overridden, otherwise, the values used come from the subfleet of the aircraft that the flight is filed with. Only assign the fares you want to override. They can be set as a monetary amount, or a percentage. Read this wiki page for more details and information.

@foreach($flight->fares as $atf) @endforeach
name code capacity price cost
{!! $atf->name !!} {!! $atf->code !!} {!! $atf->pivot->capacity !!} {!! $atf->pivot->price !!} {!! $atf->pivot->cost !!} {!! Form::open(['url' => '/admin/flights/'.$flight->id.'/fares', 'method' => 'delete', 'class' => 'pjax_fares_form' ]) !!} {!! Form::hidden('fare_id', $atf->id) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'btn btn-sm btn-danger btn-icon']) !!} {!! Form::close() !!}

{!! Form::open(['url' => '/admin/flights/'.$flight->id.'/fares', 'method' => 'post', 'class' => 'pjax_fares_form form-inline' ]) !!} {!! Form::select('fare_id', $avail_fares, null, [ 'placeholder' => 'Select Fare', 'class' => 'ac-fare-dropdown form-control input-lg select2', ]) !!} {!! Form::button(' add', ['type' => 'submit', 'class' => 'btn btn-success btn-s']) !!} {!! Form::close() !!}