diff --git a/app/Http/Controllers/Logistics/FuelController.php b/app/Http/Controllers/Logistics/FuelController.php index 5b5ea1b0b..8d450b02c 100644 --- a/app/Http/Controllers/Logistics/FuelController.php +++ b/app/Http/Controllers/Logistics/FuelController.php @@ -84,51 +84,4 @@ class FuelController extends Controller ->with('lava', $lava); } - /** - * Get the structure id passed to it and display fuel gauage for structure - */ - public function displayStructureFuel($id) { - //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); - - if($liquidOzone > 1000000) { - $liquidOzone = 1000000; - } - - $gauge = $lava->DataTable(); - $gauge->addStringColumn('Fuel') - ->addNumberColumn('Units') - ->addRow(['Liquid Ozone', $liquidOzone]); - - - $lava->GaugeChart('Liquid Ozone', $gauge, [ - 'min' => 0, - 'max' => 1000000, - 'width' => 400, - 'greenFrom' => 0, - 'greenTo' => 150000, - 'greenColor' => '#DC3912', - 'yellowFrom' => 150000, - 'yellowTo' => 300000, - 'yellowColor' => '#FF9900', - 'redFrom' => 300000, - 'redTo' => 1000000, - 'redColor' => '#109618', - 'majorTicks' => [ - 'Empty', - 'Full', - ], - ]); - - //Return the view - return view('logistics.display.fuelgauge')->with('lava', $lava) - ->with('name', $name); - } } diff --git a/resources/views/logistics/display/fuel.blade.php b/resources/views/logistics/display/fuel.blade.php index 45a19433d..86a2e9570 100644 --- a/resources/views/logistics/display/fuel.blade.php +++ b/resources/views/logistics/display/fuel.blade.php @@ -18,7 +18,6 @@