structure controller

This commit is contained in:
2018-12-08 00:32:09 -06:00
parent 8b73c323b1
commit 9496012f2b

View File

@@ -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);