structure controller

This commit is contained in:
2018-12-08 00:15:20 -06:00
parent a8a4755a81
commit a517dc9706

View File

@@ -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'])->avg('tax')->get();
$rTax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Refinery'])->avg('tax')->get();
$tax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Citadel'])->get()->avg('tax');
$rTax = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Refinery'])->get()->avg('tax');
dd($tax);
$monthTaxesMarket = $tempMonthTaxesMarket - $marketFuelCost;