structure controller

This commit is contained in:
2018-12-08 00:24:45 -06:00
parent 1babb3c580
commit f7542e99b6

View File

@@ -72,8 +72,10 @@ class StructureController extends Controller
/**
* Calculate the final taxes and send to display
*/
$taxes = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Citadel'])->get(['tax']);
$rTaxes = CorpStructure::where(['corporation_id' => $corporation, 'structure_type' => 'Refinery'])->get(['tax']);
$taxes = DB::table('CorpStructures')->where(['corporation_id' => $corporation, 'structure_type' => 'Citadel'])
->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($taxes);
$monthTaxesMarket = $tempMonthTaxesMarket - $marketFuelCost;