From 9496012f2bfca6e164492ca0c3d9da035f77d4be Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sat, 8 Dec 2018 00:32:09 -0600 Subject: [PATCH] structure controller --- app/Http/Controllers/StructureController.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/StructureController.php b/app/Http/Controllers/StructureController.php index 15cf9ec87..8eee3c7cc 100644 --- a/app/Http/Controllers/StructureController.php +++ b/app/Http/Controllers/StructureController.php @@ -73,12 +73,8 @@ class StructureController extends Controller * Calculate the final taxes and send to display */ $taxes = DB::table('CorpStructures')->where(['corporation_id' => $corporation])->get(); - $cTax = 0.00; - $rTax = 0.00; - foreach($taxes as $tax) { - $cTax += $tax->tax; - } - $cTax = $cTax / sizeof($taxes->tax); + dd($taxes); + //$taxes = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Citadel'])->get(['tax']); //$rTaxes = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Refinery'])->get(['tax']); dd($cTax);