industry taxes testing
This commit is contained in:
@@ -88,6 +88,7 @@ class StructureController extends Controller
|
|||||||
$helper = new Esi();
|
$helper = new Esi();
|
||||||
|
|
||||||
$months = 3;
|
$months = 3;
|
||||||
|
$totalTaxes = array();
|
||||||
|
|
||||||
//Get the character's corporation from esi
|
//Get the character's corporation from esi
|
||||||
$corpId = $helper->FindCorporationId(Auth::user()->character_id);
|
$corpId = $helper->FindCorporationId(Auth::user()->character_id);
|
||||||
@@ -107,6 +108,8 @@ class StructureController extends Controller
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dd($totalTaxes);
|
||||||
|
|
||||||
return view('structures.taxes')->with('totalTaxes', $totalTaxes);
|
return view('structures.taxes')->with('totalTaxes', $totalTaxes);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,11 +132,11 @@ class StructureController extends Controller
|
|||||||
//Build the array for displaying the data on the view
|
//Build the array for displaying the data on the view
|
||||||
$totalTaxes = array();
|
$totalTaxes = array();
|
||||||
|
|
||||||
for($i = 0; $i < $months; $i++) {
|
foreach($dates as $date) {
|
||||||
$totalTaxes[$i] = [
|
$totalTaxes[] = [
|
||||||
'MarketTaxes' => number_format($sHelper->GetTaxes($corpId, 'Market', $dates[$i]['start'], $dates[$i]['end']), 2, '.', ','),
|
'date' => $date['start']->toFormattedDateString(),
|
||||||
'MarketRevenue' => number_format($Helper->GetRevenue($corpId, 'Market', $dates[$i]['start'], $dates[$i]['end']), 2, '.', ','),
|
'tax' => number_format($sHelper->GetTaxes($corpId, 'Market', $date['start'], $date['end']), 2, '.', ','),
|
||||||
'MonthStart' => $dates[$i]['start']->toFormattedDateString(),
|
'revenue' => number_format($sHelper->GetRevenue($corpId, 'Market', $date['start'], $date['end']), 2, '.', ',')
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user