From 93f11491f843d29dcc464f4413f56f507c807d08 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sat, 8 Dec 2018 00:22:19 -0600 Subject: [PATCH] structure controller --- app/Http/Controllers/StructureController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/StructureController.php b/app/Http/Controllers/StructureController.php index 488bb6d49..d640f56b4 100644 --- a/app/Http/Controllers/StructureController.php +++ b/app/Http/Controllers/StructureController.php @@ -72,8 +72,8 @@ class StructureController extends Controller /** * Calculate the final taxes and send to display */ - $tax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Citadel'])->get(['tax']); - $rTax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Refinery'])->avg('tax'); + $taxes = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Citadel'])->get(['tax']); + $rTaxes = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Refinery'])->get(['tax']); dd($tax); $monthTaxesMarket = $tempMonthTaxesMarket - $marketFuelCost;