added some sorting time to the mining ledger
This commit is contained in:
@@ -117,12 +117,15 @@ class MoonLedgerController extends Controller
|
||||
foreach($ledgers as $ledger) {
|
||||
//Get the character name from the character id
|
||||
$char = $lookup->CharacterIdToName($ledger->character_id);
|
||||
//Get the corp ticker
|
||||
$corpInfo = $lookup->GetCorporationInfo($char->corporation_id);
|
||||
//Get the ore name from the type id
|
||||
$ore = $lookup->ItemIdToName($ledger->type_id);
|
||||
|
||||
//Push the data onto the mining arary
|
||||
array_push($tempMining, [
|
||||
'character' => $char,
|
||||
'corp_ticker' => $corpInfo->ticker,
|
||||
'ore' => $ore,
|
||||
'quantity' => $ledger->quantity,
|
||||
'updated' => $ledger->last_updated,
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@extends('layouts.b4')
|
||||
@section('content')
|
||||
<br>
|
||||
<div class="container">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
@@ -10,6 +11,7 @@
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<th>Character</th>
|
||||
<th>Corp Ticker</th>
|
||||
<th>Ore Name</th>
|
||||
<th>Quantity</th>
|
||||
</thead>
|
||||
@@ -17,6 +19,7 @@
|
||||
@foreach($mining as $min)
|
||||
<tr>
|
||||
<td>{{ $min['character'] }}</td>
|
||||
<td>{{ $min['corp_ticker'] }}</td>
|
||||
<td>{{ $min['ore'] }}</td>
|
||||
<td>{{ $min['quantity'] }}</td>
|
||||
<td>{{ $min['updated'] }}</td>
|
||||
|
||||
Reference in New Issue
Block a user