mining tax testing
This commit is contained in:
@@ -105,7 +105,7 @@ class MiningTaxesController extends Controller
|
|||||||
|
|
||||||
//Get the esi data for extractions
|
//Get the esi data for extractions
|
||||||
try {
|
try {
|
||||||
$response = $esi->invoke('get', '/corporation/{corporation_id}/mining/extractions/', [
|
$extractions = $esi->invoke('get', '/corporation/{corporation_id}/mining/extractions/', [
|
||||||
'corporation_id' => $config['corporation'],
|
'corporation_id' => $config['corporation'],
|
||||||
]);
|
]);
|
||||||
} catch(RequestFailedException $e) {
|
} catch(RequestFailedException $e) {
|
||||||
@@ -113,8 +113,6 @@ class MiningTaxesController extends Controller
|
|||||||
return redirect('/dashboard')->with('error', "Could not pull extractions from ESI data.");
|
return redirect('/dashboard')->with('error', "Could not pull extractions from ESI data.");
|
||||||
}
|
}
|
||||||
|
|
||||||
$extractions = json_decode($response, false);
|
|
||||||
|
|
||||||
//Basically get the structure info and attach it to the variable set
|
//Basically get the structure info and attach it to the variable set
|
||||||
foreach($extractions as $ex) {
|
foreach($extractions as $ex) {
|
||||||
$sName = $sHelper->GetStructureInfo($ex->structure_id);
|
$sName = $sHelper->GetStructureInfo($ex->structure_id);
|
||||||
@@ -127,7 +125,7 @@ class MiningTaxesController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Return the view with the extractions variable for html processing
|
//Return the view with the extractions variable for html processing
|
||||||
return view('miningtax.user.display.upcoming')->with('extractions', $extractions);
|
return view('miningtax.user.display.upcoming')->with('structures', $structures);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<th>Decay Time</th>
|
<th>Decay Time</th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($extractions as $ex)
|
@foreach($structures as $ex)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $ex['structure_name'] }}</td>
|
<td>{{ $ex['structure_name'] }}</td>
|
||||||
<td>{{ $ex['start_time'] }}</td>
|
<td>{{ $ex['start_time'] }}</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user