structure controller

This commit is contained in:
2018-12-08 00:17:39 -06:00
parent a517dc9706
commit d9fe1b80f4

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