e3b4a0ed2e
* SimBrief Integration Update * Added SimBrief Type field to subfleets, can be used to assign simbrief airframes to subfleets and fix non existing or wrong types. If not used simbrief form will use aircraft's icao type code * Added Passenger and Baggage weights to settings * Added setting for using PhpVms Pilot/User Ident as simbrief atc callsign * SimBrief form code cleaned up a bit and improved. Now form supports both cargo and passenger fares to be used at the same time. Generated passenger baggage weight will be reduced from aircraft's cargo capacity and remaining amount will be used for random cargo generation. Also multiple cargo fares or any mix is possible now (like only cargo, only passenger, multiple cargo and passenger fares) * StyleFix (SimBrief Controller) * Fix Callsign Setting Check * Code Cleanup Reduced loops and removed if's in loops, getting fares from aircraft instead of flight/subfleets. No need to go through getReconciledFaresForFlight anymore. Aircraft provides all fare info we need. Removed unnecessary html elements, added some comments. * Update Simbrief Controller Fixed setting checks. Removed non used $subfleet and from main form and $aircraft from aircraft selection form blade. Added/fixed comments. * StyleFix for Controller
87 lines
3.4 KiB
PHP
87 lines
3.4 KiB
PHP
<div class="row">
|
|
<div class="col-12">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
@component('admin.components.info')
|
|
Subfleets are aircraft groups. The "type" is a short name. Airlines always
|
|
group aircraft together by feature, so 737s with winglets might have a type of
|
|
"B.738-WL". You can create as many as you want, you need at least one, though.
|
|
|
|
Read more about subfleets <a href="{{ docs_link('finances') }}" target="_new">here</a>.
|
|
@endcomponent
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="form-group col-sm-3">
|
|
{{ Form::label('airline_id', 'Airline:') }}
|
|
{{ Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) }}
|
|
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
|
|
</div>
|
|
|
|
<div class="form-group col-sm-3">
|
|
{{ Form::label('hub_id', 'Main Hub:') }}
|
|
{{ Form::select('hub_id', $hubs, null , ['class' => 'form-control select2']) }}
|
|
<p class="text-danger">{{ $errors->first('hub_id') }}</p>
|
|
</div>
|
|
|
|
<div class="form-group col-sm-2">
|
|
{{ Form::label('type', 'Type:') }}
|
|
{{ Form::text('type', null, ['class' => 'form-control']) }}
|
|
<p class="text-danger">{{ $errors->first('type') }}</p>
|
|
</div>
|
|
|
|
<div class="form-group col-sm-2">
|
|
{{ Form::label('simbrief_type', 'SimBrief Type:') }}
|
|
{{ Form::text('simbrief_type', null, ['class' => 'form-control']) }}
|
|
<p class="text-danger">{{ $errors->first('simbrief_type') }}</p>
|
|
</div>
|
|
|
|
<div class="form-group col-sm-2">
|
|
{{ Form::label('name', 'Name:') }}
|
|
{{ Form::text('name', null, ['class' => 'form-control']) }}
|
|
<p class="text-danger">{{ $errors->first('name') }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
|
|
<div class="form-group col-sm-3">
|
|
{{ Form::label('cost_block_hour', 'Cost Per Hour:') }}
|
|
{{ Form::number('cost_block_hour', null , ['class' => 'form-control', 'step' => '0.01']) }}
|
|
<p class="text-danger">{{ $errors->first('cost_block_hour') }}</p>
|
|
</div>
|
|
|
|
<div class="form-group col-sm-3">
|
|
{{ Form::label('cost_delay_minute', 'Cost Delay Per Minute:') }}
|
|
{{ Form::number('cost_delay_minute', null , ['class' => 'form-control', 'step' => '0.01']) }}
|
|
<p class="text-danger">{{ $errors->first('cost_delay_minute') }}</p>
|
|
</div>
|
|
|
|
<div class="form-group col-sm-3">
|
|
{{ Form::label('fuel_type', 'Fuel Type:') }}
|
|
{{ Form::select('fuel_type', $fuel_types, null , ['class' => 'form-control select2']) }}
|
|
<p class="text-danger">{{ $errors->first('fuel_type') }}</p>
|
|
</div>
|
|
|
|
<div class="form-group col-sm-3">
|
|
{{ Form::label('ground_handling_multiplier', 'Ground Handling Multiplier:') }}
|
|
{{ Form::text('ground_handling_multiplier', null, ['class' => 'form-control']) }}
|
|
<p class="text-danger">{{ $errors->first('ground_handling_multiplier') }}</p>
|
|
|
|
@component('admin.components.info')
|
|
This is the multiplier of the airport ground-handling cost to charge for
|
|
aircraft in this subfleet, as a percentage. Defaults to 100.
|
|
@endcomponent
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
|
|
<div class="form-group col-sm-12">
|
|
<div class="pull-right">
|
|
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
|
<a href="{{ route('admin.subfleets.index') }}" class="btn btn-default">Cancel</a>
|
|
</div>
|
|
</div>
|
|
</div>
|