fares

@component('admin.components.info') Fares assigned to the current subfleet. These can be overridden, otherwise, the value used is the default, which comes from the fare. The pay can be set as a fixed amount, or a percentage of the base fare @endcomponent

@if(count($subfleet->fares)) @endif @foreach($subfleet->fares as $atf) @endforeach
Name Code Type Capacity (default) Price (default) Cost (default)
{{ $atf->name }} {{ $atf->code }} {{ \App\Models\Enums\FareType::label($atf->type) }} {{ $atf->pivot->capacity }} ({{ $atf->capacity }}) {{ $atf->pivot->price }} ({{ $atf->price }}) {{ $atf->pivot->cost }} ({{ $atf->cost}}) {{ Form::open(['url' => '/admin/subfleets/'.$subfleet->id.'/fares', 'method' => 'delete', 'class' => 'rm_fare' ]) }} {{ Form::hidden('fare_id', $atf->id) }} {{ Form::button('', ['type' => 'submit', 'class' => 'btn btn-sm btn-danger btn-icon']) }} {{ Form::close() }}

{{ Form::open(['url' => '/admin/subfleets/'.$subfleet->id.'/fares', 'method' => 'post', 'class' => 'rm_fare 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() }}