2018-01-01 04:00:50 +08:00
|
|
|
<div class="row">
|
2020-02-02 02:05:56 +08:00
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="callout callout-success">
|
|
|
|
When a fare is assigned to a subfleet, the price, cost and capacity can be overridden,
|
|
|
|
so you can create default values that will apply to most of your subfleets, and change
|
|
|
|
them where they will differ.
|
2018-01-01 04:00:50 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
<br/>
|
|
|
|
</div>
|
2018-01-01 04:00:50 +08:00
|
|
|
</div>
|
2017-11-23 10:03:49 +08:00
|
|
|
<div class="row">
|
2020-03-07 04:10:03 +08:00
|
|
|
<div class="form-group col-sm-4">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::label('code', 'Code:') }} <span class="required">*</span>
|
2018-02-23 04:21:00 +08:00
|
|
|
@component('admin.components.info')
|
2020-02-02 02:05:56 +08:00
|
|
|
How this fare class will show up on a ticket
|
2018-02-23 04:21:00 +08:00
|
|
|
@endcomponent
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::text('code', null, ['class' => 'form-control']) }}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('code') }}</p>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2017-06-18 05:41:00 +08:00
|
|
|
|
2020-03-07 04:10:03 +08:00
|
|
|
<div class="form-group col-sm-4">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::label('name', 'Name:') }} <span class="required">*</span>
|
2018-02-23 04:21:00 +08:00
|
|
|
@component('admin.components.info')
|
2020-02-02 02:05:56 +08:00
|
|
|
The fare class name, E.g, "Economy" or "First"
|
2018-02-23 04:21:00 +08:00
|
|
|
@endcomponent
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::text('name', null, ['class' => 'form-control']) }}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('name') }}</p>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2017-06-18 05:41:00 +08:00
|
|
|
|
2020-03-07 04:10:03 +08:00
|
|
|
<div class="form-group col-sm-4">
|
|
|
|
{{ Form::label('type', 'Fare Type:') }} <span class="required">*</span>
|
|
|
|
@component('admin.components.info')
|
|
|
|
If this is a passenger or cargo fare
|
|
|
|
@endcomponent
|
|
|
|
{{ Form::select('type', $fare_types, null , [
|
|
|
|
'id' => 'type',
|
|
|
|
'class' => 'form-control select2'
|
|
|
|
]) }}
|
|
|
|
<p class="text-danger">{{ $errors->first('type') }}</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
<div class="form-group col-sm-6">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::label('price', 'Price:') }}
|
2018-02-23 04:21:00 +08:00
|
|
|
@component('admin.components.info')
|
2020-03-07 04:10:03 +08:00
|
|
|
This is the price of a ticket or price per {{ setting('units.weight') }}
|
2018-02-23 04:21:00 +08:00
|
|
|
@endcomponent
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::text('price', null, ['class' => 'form-control', 'placeholder' => 0]) }}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('price') }}</p>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2017-06-18 05:41:00 +08:00
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
<div class="form-group col-sm-6">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::label('cost', 'Cost:') }}
|
2018-02-23 04:21:00 +08:00
|
|
|
@component('admin.components.info')
|
2020-03-07 04:10:03 +08:00
|
|
|
The operating cost per unit (passenger or {{ setting('units.weight') }})
|
2018-02-23 04:21:00 +08:00
|
|
|
@endcomponent
|
2019-08-07 03:54:21 +08:00
|
|
|
{{ Form::number('cost', null, ['class' => 'form-control', 'placeholder' => 0, 'step' => '0.01']) }}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('cost') }}</p>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2020-03-07 04:10:03 +08:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2020-02-02 02:05:56 +08:00
|
|
|
<div class="form-group col-sm-6">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::label('capacity', 'Capacity:') }}
|
2018-02-23 04:21:00 +08:00
|
|
|
@component('admin.components.info')
|
2020-03-07 04:10:03 +08:00
|
|
|
Max seats or capacity available. This can be adjusted in the subfleet
|
2018-02-23 04:21:00 +08:00
|
|
|
@endcomponent
|
2019-08-07 03:54:21 +08:00
|
|
|
{{ Form::number('capacity', null, ['class' => 'form-control', 'min' => 0]) }}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('capacity') }}</p>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2017-06-18 05:41:00 +08:00
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
<div class="form-group col-sm-6">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::label('notes', 'Notes:') }}
|
2020-03-07 04:10:03 +08:00
|
|
|
@component('admin.components.info')
|
|
|
|
Notes for this fare
|
|
|
|
@endcomponent
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::text('notes', null, ['class' => 'form-control']) }}
|
2018-02-07 00:18:22 +08:00
|
|
|
<p class="text-danger">{{ $errors->first('notes') }}</p>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2017-06-18 05:41:00 +08:00
|
|
|
|
2020-03-07 04:10:03 +08:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2020-02-02 02:05:56 +08:00
|
|
|
<!-- Active Field -->
|
|
|
|
<div class="form-group col-sm-12">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::label('active', 'Active:') }}
|
2017-11-23 10:03:49 +08:00
|
|
|
<label class="checkbox-inline">
|
2020-02-02 02:05:56 +08:00
|
|
|
{{ Form::hidden('active', 0, false) }}
|
|
|
|
{{ Form::checkbox('active', 1, null) }}
|
2017-11-23 10:03:49 +08:00
|
|
|
</label>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2020-03-07 04:10:03 +08:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2020-02-02 02:05:56 +08:00
|
|
|
<!-- Submit Field -->
|
|
|
|
<div class="form-group col-sm-12">
|
2017-11-23 10:03:49 +08:00
|
|
|
<div class="pull-right">
|
2020-02-02 02:05:56 +08:00
|
|
|
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
|
|
|
<a href="{{ route('admin.fares.index') }}" class="btn btn-warn">Cancel</a>
|
2017-11-23 10:03:49 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2017-06-11 07:27:19 +08:00
|
|
|
</div>
|