@@ -14,6 +14,7 @@
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Code</th>
|
||||
<th style="text-align: center;">Type</th>
|
||||
<th style="text-align: center;">Capacity (default)</th>
|
||||
<th style="text-align: center;">Price (default)</th>
|
||||
<th style="text-align: center;">Cost (default)</th>
|
||||
@@ -24,16 +25,17 @@
|
||||
<tbody>
|
||||
@foreach($subfleet->fares as $atf)
|
||||
<tr>
|
||||
<td class="sorting_1">{{ $atf->name }}</td>
|
||||
<td style="text-align: center;">{{ $atf->code }}</td>
|
||||
<td style="text-align: center;">
|
||||
<td class="sorting_1 text-center">{{ $atf->name }}</td>
|
||||
<td class="text-center">{{ $atf->code }}</td>
|
||||
<td class="sorting_1 text-center">{{ \App\Models\Enums\FareType::label($atf->type) }}</td>
|
||||
<td class="text-center">
|
||||
<a href="#" data-pk="{{ $atf->id }}" data-name="capacity">{{ $atf->pivot->capacity }}</a>
|
||||
<span class="small background-color-grey-light">({{ $atf->capacity }})</span>
|
||||
</td>
|
||||
<td style="text-align: center;">
|
||||
<td class="text-center">
|
||||
<a href="#" data-pk="{{ $atf->id }}" data-name="price">{{ $atf->pivot->price }}</a>
|
||||
<span class="small background-color-grey-light">({{ $atf->price }})</span></td>
|
||||
<td style="text-align: center;">
|
||||
<td class="text-center">
|
||||
<a href="#" data-pk="{{ $atf->id }}" data-name="cost">{{ $atf->pivot->cost }}</a>
|
||||
<span class="small background-color-grey-light">({{ $atf->cost}})</span></td>
|
||||
<td style="text-align: right; width:3%;">
|
||||
|
||||
@@ -1,32 +1,36 @@
|
||||
<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.
|
||||
<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
|
||||
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-4">
|
||||
{{ 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-4">
|
||||
{{ 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-4">
|
||||
{{ Form::label('name', 'Name:') }}
|
||||
{{ Form::text('name', null, ['class' => 'form-control']) }}
|
||||
<p class="text-danger">{{ $errors->first('name') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-4">
|
||||
{{ 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-4">
|
||||
{{ 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-4">
|
||||
{{ Form::label('name', 'Name:') }}
|
||||
{{ Form::text('name', null, ['class' => 'form-control']) }}
|
||||
<p class="text-danger">{{ $errors->first('name') }}</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user