From f5e83461a301b26400bb9a0630e3a6680940f6c1 Mon Sep 17 00:00:00 2001 From: Russell West Date: Tue, 13 Apr 2021 17:03:03 +0100 Subject: [PATCH] adds 100ll option to airport admin (#1138) * adds 100ll option to airport admin * Adds mogas field too Co-authored-by: Nabeel S --- .../views/admin/airports/fields.blade.php | 24 +++++++++++++++++-- .../views/admin/airports/table.blade.php | 10 ++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/resources/views/admin/airports/fields.blade.php b/resources/views/admin/airports/fields.blade.php index a13aa181..55235ac7 100644 --- a/resources/views/admin/airports/fields.blade.php +++ b/resources/views/admin/airports/fields.blade.php @@ -60,7 +60,7 @@
-
+
{{ Form::label('ground_handling_cost', 'Ground Handling Cost:') }} {{ Form::number('ground_handling_cost', null, ['class' => 'form-control', 'step' => '0.01']) }}

{{ $errors->first('ground_handling_cost') }}

@@ -71,7 +71,7 @@ @endcomponent
-
+
{{ Form::label('fuel_jeta_cost', 'Jet A Fuel Cost:') }} {{ Form::number('fuel_jeta_cost', null, ['class' => 'form-control', 'step' => '0.01']) }}

{{ $errors->first('fuel_jeta_cost') }}

@@ -81,6 +81,26 @@ @endcomponent
+
+ {{ Form::label('fuel_100ll_cost', '100LL Fuel Cost:') }} + {{ Form::number('fuel_100ll_cost', null, ['class' => 'form-control', 'step' => '0.01']) }} +

{{ $errors->first('fuel_100ll_cost') }}

+ + @component('admin.components.info') + This is the cost per {{ config('phpvms.internal_units.fuel') }} + @endcomponent +
+ +
+ {{ Form::label('fuel_mogas_cost', 'MOGAS Fuel Cost:') }} + {{ Form::number('fuel_mogas_cost', null, ['class' => 'form-control', 'step' => '0.01']) }} +

{{ $errors->first('fuel_mogas_cost') }}

+ + @component('admin.components.info') + This is the cost per {{ config('phpvms.internal_units.fuel') }} + @endcomponent +
+
diff --git a/resources/views/admin/airports/table.blade.php b/resources/views/admin/airports/table.blade.php index 76f71b9f..a1dd922a 100644 --- a/resources/views/admin/airports/table.blade.php +++ b/resources/views/admin/airports/table.blade.php @@ -7,6 +7,8 @@ Hub GH Cost JetA + 100LL + MOGAS @@ -27,6 +29,14 @@ {{ $airport->fuel_jeta_cost }} + + {{ $airport->fuel_100ll_cost }} + + + {{ $airport->fuel_mogas_cost }} + {{ Form::open(['route' => ['admin.airports.destroy', $airport->id], 'method' => 'delete']) }}