Aircraft level Hub definitions (#1363)
* Aircraft level Hub definitions * Add ability to define a hub for an aircraft apart from its subfleet. * Update csv import/export capability for hub_id field * Fix importertest source csv * Fix source csv for updating too * Update aircraft_empty_cols.csv Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
Subfleet and Status
|
||||
</h6>
|
||||
<div class="form-container-body row">
|
||||
<div class="form-group col-sm-4">
|
||||
<div class="form-group col-sm-3">
|
||||
{{ Form::label('subfleet_id', 'Subfleet:') }}
|
||||
{{ Form::select('subfleet_id', $subfleets, $subfleet_id ?? null, [
|
||||
'class' => 'form-control select2',
|
||||
@@ -15,17 +15,21 @@
|
||||
<p class="text-danger">{{ $errors->first('subfleet_id') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-4">
|
||||
<div class="form-group col-sm-3">
|
||||
{{ Form::label('status', 'Status:') }}
|
||||
{{ Form::select('status', $statuses, null, ['class' => 'form-control select2', 'placeholder' => 'Select Status']) }}
|
||||
<p class="text-danger">{{ $errors->first('subfleet_id') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-4">
|
||||
<div class="form-group col-sm-3">
|
||||
{{ Form::label('hub_id', '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-3">
|
||||
{{ Form::label('airport_id', 'Location:') }}
|
||||
{{ Form::select('airport_id', $airports, null, [
|
||||
'class' => 'form-control select2'
|
||||
]) }}
|
||||
{{ Form::select('airport_id', $airports, null, ['class' => 'form-control select2']) }}
|
||||
<p class="text-danger">{{ $errors->first('airport_id') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Registration</th>
|
||||
<th>Subfleet</th>
|
||||
<th style="text-align: center;">Hub</th>
|
||||
<th style="text-align: center;">Location</th>
|
||||
<th style="text-align: center;">Hours</th>
|
||||
<th style="text-align: center;">Active</th>
|
||||
@@ -22,6 +23,7 @@
|
||||
-
|
||||
@endif
|
||||
</td>
|
||||
<td style="text-align: center;">{{ $ac->hub_id }}</td>
|
||||
<td style="text-align: center;">{{ $ac->airport_id }}</td>
|
||||
<td style="text-align: center;">
|
||||
@minutestotime($ac->flight_time)
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<th>Name</th>
|
||||
<th>Airline</th>
|
||||
<th>Type</th>
|
||||
<th>Hub</th>
|
||||
<th>Aircraft</th>
|
||||
<th></th>
|
||||
</thead>
|
||||
@@ -17,6 +18,7 @@
|
||||
</td>
|
||||
<td>{{ optional($subfleet->airline)->name }}</td>
|
||||
<td>{{ $subfleet->type }}</td>
|
||||
<td>{{ $subfleet->hub_id }}</td>
|
||||
<td>{{ $subfleet->aircraft->count() }}</td>
|
||||
<td class="text-right">
|
||||
{{ Form::open(['route' => ['admin.subfleets.destroy', $subfleet->id], 'method' => 'delete']) }}
|
||||
|
||||
Reference in New Issue
Block a user