More styling, banner when nothing is added
This commit is contained in:
@@ -2,18 +2,21 @@
|
|||||||
<div class="header">
|
<div class="header">
|
||||||
<h3>expenses</h3>
|
<h3>expenses</h3>
|
||||||
@component('admin.components.info')
|
@component('admin.components.info')
|
||||||
These expenses are only applied to this aircraft.
|
These expenses are only applied to this aircraft.
|
||||||
@endcomponent
|
@endcomponent
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
|
||||||
<table class="table table-responsive" id="expenses">
|
|
||||||
|
|
||||||
@if(count($aircraft->expenses))
|
@if(count($aircraft->expenses) === 0)
|
||||||
<thead>
|
@include('admin.common.none_added', ['type' => 'expenses'])
|
||||||
<th>Name</th>
|
@endif
|
||||||
<th>Cost <span class="small">{{ currency(config('phpvms.currency')) }}</span></th>
|
|
||||||
<th>Type</th>
|
<table class="table table-responsive" id="expenses">
|
||||||
<th></th>
|
@if(count($aircraft->expenses) > 0)
|
||||||
|
<thead>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Cost <span class="small">{{ currency(config('phpvms.currency')) }}</span></th>
|
||||||
|
<th>Type</th>
|
||||||
|
<th></th>
|
||||||
</thead>
|
</thead>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,65 +1,78 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-sm-6">
|
<div class="col-sm-12">
|
||||||
{{ Form::label('subfleet_id', 'Subfleet:') }}
|
<div class="form-container">
|
||||||
{{ Form::select('subfleet_id', $subfleets, $subfleet_id ?? null, [
|
<h6><i class="fas fa-clock"></i>
|
||||||
'class' => 'form-control select2',
|
Subfleet and Status
|
||||||
'placeholder' => 'Select Subfleet'
|
</h6>
|
||||||
])
|
<div class="form-container-body row">
|
||||||
}}
|
<div class="form-group col-sm-6">
|
||||||
<p class="text-danger">{{ $errors->first('subfleet_id') }}</p>
|
{{ Form::label('subfleet_id', 'Subfleet:') }}
|
||||||
</div>
|
{{ Form::select('subfleet_id', $subfleets, $subfleet_id ?? null, [
|
||||||
|
'class' => 'form-control select2',
|
||||||
|
'placeholder' => 'Select Subfleet'
|
||||||
|
])
|
||||||
|
}}
|
||||||
|
<p class="text-danger">{{ $errors->first('subfleet_id') }}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-sm-6">
|
||||||
|
{{ 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>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-6">
|
|
||||||
{{ Form::label('name', 'Name:') }} <span class="required">*</span>
|
|
||||||
{{ Form::text('name', null, ['class' => 'form-control']) }}
|
|
||||||
<p class="text-danger">{{ $errors->first('name') }}</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
@component('admin.components.info')
|
<div class="form-container">
|
||||||
View list of
|
<h6>
|
||||||
<a href="https://en.wikipedia.org/wiki/List_of_ICAO_aircraft_type_designators"
|
<span style="float:right">
|
||||||
target="_blank">
|
View list of
|
||||||
IATA and ICAO Type Designators
|
<a href="https://en.wikipedia.org/wiki/List_of_ICAO_aircraft_type_designators"
|
||||||
</a>
|
target="_blank">
|
||||||
@endcomponent
|
IATA and ICAO Type Designators
|
||||||
</div>
|
</a>
|
||||||
</div>
|
</span>
|
||||||
<div class="row">
|
<i class="fas fa-plane"></i>
|
||||||
<div class="form-group col-sm-4">
|
Aircraft Information
|
||||||
{{ Form::label('iata', 'IATA:') }}
|
|
||||||
{{ Form::text('iata', null, ['class' => 'form-control']) }}
|
|
||||||
<p class="text-danger">{{ $errors->first('iata') }}</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-sm-4">
|
</h6>
|
||||||
{{ Form::label('icao', 'ICAO:') }}
|
<div class="form-container-body">
|
||||||
{{ Form::text('icao', null, ['class' => 'form-control']) }}
|
<div class="row">
|
||||||
<p class="text-danger">{{ $errors->first('icao') }}</p>
|
<div class="form-group col-sm-12">
|
||||||
</div>
|
{{ Form::label('name', 'Name:') }} <span class="required">*</span>
|
||||||
|
{{ Form::text('name', null, ['class' => 'form-control']) }}
|
||||||
|
<p class="text-danger">{{ $errors->first('name') }}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="form-group col-sm-4">
|
||||||
|
{{ Form::label('iata', 'IATA:') }}
|
||||||
|
{{ Form::text('iata', null, ['class' => 'form-control']) }}
|
||||||
|
<p class="text-danger">{{ $errors->first('iata') }}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-sm-4">
|
<div class="form-group col-sm-4">
|
||||||
{{ Form::label('zfw', 'Zero Fuel Weight:') }}
|
{{ Form::label('icao', 'ICAO:') }}
|
||||||
{{ Form::text('zfw', null, ['class' => 'form-control']) }}
|
{{ Form::text('icao', null, ['class' => 'form-control']) }}
|
||||||
<p class="text-danger">{{ $errors->first('zfw') }}</p>
|
<p class="text-danger">{{ $errors->first('icao') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<!-- Registration Field -->
|
|
||||||
<div class="form-group col-sm-6">
|
|
||||||
{{ Form::label('registration', 'Registration:') }}
|
|
||||||
{{--<p class="text-success small">Enter the registration with the country prefix</p>--}}
|
|
||||||
{{ Form::text('registration', null, ['class' => 'form-control']) }}
|
|
||||||
<p class="text-danger">{{ $errors->first('registration') }}</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Active Field -->
|
<div class="form-group col-sm-4">
|
||||||
<div class="form-group col-sm-6">
|
{{ Form::label('registration', 'Registration:') }}
|
||||||
{{ Form::label('status', 'Status:') }}
|
{{ Form::text('registration', null, ['class' => 'form-control']) }}
|
||||||
{{ Form::select('status', $statuses, null, ['class' => 'form-control select2', 'placeholder' => 'Select Status']) }}
|
<p class="text-danger">{{ $errors->first('registration') }}</p>
|
||||||
<p class="text-danger">{{ $errors->first('subfleet_id') }}</p>
|
{{--{{ Form::label('zfw', 'Zero Fuel Weight:') }}
|
||||||
|
{{ Form::text('zfw', null, ['class' => 'form-control']) }}
|
||||||
|
<p class="text-danger">{{ $errors->first('zfw') }}</p>--}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ Pass in:
|
|||||||
<h3>files</h3>
|
<h3>files</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@if(count($model->files) === 0)
|
||||||
|
@include('admin.common.none_added', ['type' => 'files'])
|
||||||
|
@endif
|
||||||
|
|
||||||
{{-- Show all the files here --}}
|
{{-- Show all the files here --}}
|
||||||
<table class="table table-hover table-responsive">
|
<table class="table table-hover table-responsive">
|
||||||
@if(count($model->files))
|
@if(count($model->files))
|
||||||
|
|||||||
5
resources/views/admin/common/none_added.blade.php
Normal file
5
resources/views/admin/common/none_added.blade.php
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<div class="jumbotron">
|
||||||
|
<p class="text-center">
|
||||||
|
No {{ $type }} have been added
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
<i class="fas fa-info-circle" style="color: #067ec1"></i>
|
<i class="fas fa-info-circle" style="color: #067ec1"></i>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="category">
|
<p class="category" style="text-transform:none;">
|
||||||
{{ $slot }}
|
{{ $slot }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -13,6 +13,10 @@
|
|||||||
<p class="text-danger">{{ $errors->first('value') }}</p>
|
<p class="text-danger">{{ $errors->first('value') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@if(count($flight->fares) === 0)
|
||||||
|
@include('admin.common.none_added', ['type' => 'fares'])
|
||||||
|
@endif
|
||||||
|
|
||||||
<table id="flight_fares"
|
<table id="flight_fares"
|
||||||
class="table table-hover"
|
class="table table-hover"
|
||||||
role="grid" aria-describedby="aircraft_fares_info">
|
role="grid" aria-describedby="aircraft_fares_info">
|
||||||
|
|||||||
@@ -1,8 +1,15 @@
|
|||||||
<div id="subfleet_flight_wrapper">
|
<div id="subfleet_flight_wrapper">
|
||||||
<h3>subfleets</h3>
|
<div class="header">
|
||||||
@component('admin.components.info')
|
<h3>subfleets</h3>
|
||||||
The subfleets that are assigned to this flight.
|
@component('admin.components.info')
|
||||||
@endcomponent
|
The subfleets that are assigned to this flight.
|
||||||
|
@endcomponent
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@if(count($flight->subfleets) === 0)
|
||||||
|
@include('admin.common.none_added', ['type' => 'expenses'])
|
||||||
|
@endif
|
||||||
|
|
||||||
<table class="table table-responsive" id="aircrafts-table">
|
<table class="table table-responsive" id="aircrafts-table">
|
||||||
@if(count($flight->subfleets))
|
@if(count($flight->subfleets))
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@@ -42,36 +42,47 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Auto Approve Acars Field -->
|
<div class="col-12">
|
||||||
<div class="form-group col-sm-4 text-center">
|
<div class="form-container">
|
||||||
<div class="checkbox">
|
<h6><i class="fas fa-check-square"></i>
|
||||||
<label class="checkbox-inline">
|
Options
|
||||||
{{ Form::hidden('auto_approve_acars', false) }}
|
</h6>
|
||||||
{{ Form::checkbox('auto_approve_acars') }}
|
<div class="form-container-body">
|
||||||
{{ Form::label('auto_approve_acars', 'Auto Approve ACARS PIREPs') }}
|
<div class="row">
|
||||||
</label>
|
<!-- Auto Approve Acars Field -->
|
||||||
</div>
|
<div class="form-group col-sm-4 text-center">
|
||||||
</div>
|
<div class="checkbox">
|
||||||
|
<label class="checkbox-inline">
|
||||||
|
{{ Form::hidden('auto_approve_acars', false) }}
|
||||||
|
{{ Form::checkbox('auto_approve_acars') }}
|
||||||
|
{{ Form::label('auto_approve_acars', 'Auto Approve ACARS PIREPs') }}
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Auto Approve Manual Field -->
|
<!-- Auto Approve Manual Field -->
|
||||||
<div class="form-group col-sm-4 text-center">
|
<div class="form-group col-sm-4 text-center">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label class="checkbox-inline">
|
<label class="checkbox-inline">
|
||||||
{{ Form::hidden('auto_approve_manual', false) }}
|
{{ Form::hidden('auto_approve_manual', false) }}
|
||||||
{{ Form::checkbox('auto_approve_manual') }}
|
{{ Form::checkbox('auto_approve_manual') }}
|
||||||
{{ Form::label('auto_approve_manual', 'Auto Approve Manual PIREPs') }}
|
{{ Form::label('auto_approve_manual', 'Auto Approve Manual PIREPs') }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Auto Promote Field -->
|
<!-- Auto Promote Field -->
|
||||||
<div class="form-group col-sm-4 text-center">
|
<div class="form-group col-sm-4 text-center">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label class="checkbox-inline">
|
<label class="checkbox-inline">
|
||||||
{{ Form::hidden('auto_promote', false) }}
|
{{ Form::hidden('auto_promote', false) }}
|
||||||
{{ Form::checkbox('auto_promote') }}
|
{{ Form::checkbox('auto_promote') }}
|
||||||
{{ Form::label('auto_promote', 'Auto Promote') }}
|
{{ Form::label('auto_promote', 'Auto Promote') }}
|
||||||
</label>
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
<div id="rank_subfleet_wrapper" class="dataTables_wrapper form-inline dt-bootstrap col-lg-12">
|
<div id="rank_subfleet_wrapper" class="dataTables_wrapper form-inline dt-bootstrap col-lg-12">
|
||||||
|
@if(count($rank->subfleets) === 0)
|
||||||
|
@include('admin.common.none_added', ['type' => 'subfleets'])
|
||||||
|
@endif
|
||||||
|
|
||||||
<table class="table table-responsive" id="subfleets-table">
|
<table class="table table-responsive" id="subfleets-table">
|
||||||
@if(count($rank->subfleets))
|
@if(count($rank->subfleets))
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
Reference in New Issue
Block a user