From f71a835d1b9a56ea6f72c22d73b5197abfdca27f Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 8 Jul 2019 21:08:13 -0500 Subject: [PATCH] fuel gauge --- app/Http/Controllers/Logistics/FuelController.php | 11 +++++++++-- .../views/logistics/display/fuelgauge.blade.php | 12 +++++++++++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Logistics/FuelController.php b/app/Http/Controllers/Logistics/FuelController.php index b218356ef..1a1402301 100644 --- a/app/Http/Controllers/Logistics/FuelController.php +++ b/app/Http/Controllers/Logistics/FuelController.php @@ -42,9 +42,11 @@ class FuelController extends Controller 'liquid_ozone' => $liquidOzone, 'link' => '/logistics/fuel/display/' . $gate->structure_id . '/', ]; + + array_push($jumpGates, $temp); } - return view('logistics.display.fuel')->with('gates', $gates); + return view('logistics.display.fuel')->with('jumpGates', $jumpGates); } /** @@ -54,6 +56,10 @@ class FuelController extends Controller //Declare class variables $lava = new Lavacharts; $aHelper = new AssetHelper(null, null, null); + + $structure = Structure::where(['structure_id' => $id])->first(); + $name = $structure['structure_name']; + //Get the quantity of liquid ozone in the structure $liquidOzone = $aHelper->GetAssetByType(16273, $id); @@ -76,6 +82,7 @@ class FuelController extends Controller ]); //Return the view - return view('logistics.display.fuelgauage')->with('lava', $lava); + return view('logistics.display.fuelgauage')->with('lava', $lava) + ->with('name', $name); } } diff --git a/resources/views/logistics/display/fuelgauge.blade.php b/resources/views/logistics/display/fuelgauge.blade.php index 7cf47edd1..47b36855d 100644 --- a/resources/views/logistics/display/fuelgauge.blade.php +++ b/resources/views/logistics/display/fuelgauge.blade.php @@ -1,4 +1,14 @@ @extends('layouts.b4') @section('content') - +
+
+
+

{{ $name }}

+
+
+
+ {!! $lava->render('Gauage Chart', 'Liquid Ozone', 'fuel-gauge-div') !!} +
+
+
@endsection \ No newline at end of file