moon ledger stuff

This commit is contained in:
2020-04-25 05:03:09 -05:00
parent d42d0c9d73
commit 2507c5c60e
2 changed files with 8 additions and 3 deletions

View File

@@ -118,7 +118,7 @@ class MoonLedgerController extends Controller
$sortTime = Carbon::now()->subDays(30);
$current = Carbon::createFromFormat('Y-m-d', $ledger->last_updated);
if($current->greaterThanOrEqualTo($sortTime)) {
array_push($miningLedger, [
array_push($tempMiningLedger, [
'structure' => $value,
'character' => $charInfo->name,
'corpTicker' => $corpInfo->ticker,
@@ -128,10 +128,15 @@ class MoonLedgerController extends Controller
]);
}
}
dd($tempMiningLedger);
//Store the ledger permanently by structure name
array_push($miningLedgers, $tempMiningLedger);
}
}
return view('moons.ledger.corpmoons')->with('miningLedger', $miningLedger)
return view('moons.ledger.corpmoons')->with('miningLedgers', $miningLedgers)
->with('structures', $structures);
}

View File

@@ -27,7 +27,7 @@
<th>Date</th>
</thead>
<tbody>
@foreach($miningLedger as $ledger)
@foreach($miningLedgers as $ledger)
@if($ledger['structure'] == $structure)
<tr>
<td>{{ $ledger['character'] }}</td>