mining taxes

This commit is contained in:
2021-03-07 22:15:43 +09:00
parent 0c59a6527e
commit 36a33e86ff

View File

@@ -263,7 +263,7 @@ class MiningTaxesController extends Controller
'character_id' => auth()->user()->getId(),
])->where('last_updated', '>=', Carbon::now()->subDays(30))->get();
if($ledger != null) {
if($ledgers != null) {
foreach($ledgers as $ledger) {
//Get the structure name from the database
$structure = $sHelper->GetStructureInfo($obs->observer_id);
@@ -281,6 +281,8 @@ class MiningTaxesController extends Controller
'name' => $structure->name,
]);
}
} else {
redirect('/dashboard')->with('error', 'No available data for the mining ledger to be displayed.');
}
}