fixed job issue

This commit is contained in:
2021-06-03 00:52:49 +09:00
parent 8ea29296bd
commit 2349f1031c

View File

@@ -45,7 +45,8 @@ class MiningTaxesAdminController extends Controller
$config = config('esi');
$lookup = new LookupHelper;
$sHelper = new StructureHelper($config['primary'], $config['corporation']);
$structures = new Collection;
$coll = new Collection;
$structures = array();
//Get all of the structures
@@ -53,18 +54,24 @@ class MiningTaxesAdminController extends Controller
$tataras = $sHelper->GetStructuresByType('Tatara');
foreach($athanors as $athanor) {
$structures->push([
$coll->push([
$athanor->structure_id => $athanor->structure_name,
]);
}
foreach($tataras as $tatara) {
$structures->push([
$coll->push([
$tatara->structure_id => $tatara->structure_name,
]);
}
$structures->sort();
$coll->sort();
foreach($coll as $key => $value) {
array_push($structures, [
$key => $value,
]);
}
return view('miningtax.admin.display.miningops.form')->with('structures', $structures);
}
@@ -80,6 +87,8 @@ class MiningTaxesAdminController extends Controller
'structure' => 'required',
]);
dd($request);
//Get the name of the structure from the table
$moon = Observer::where([
'observer_id' => $request->structure,