tidying up use declarations and making new journal page for testing

This commit is contained in:
2018-12-13 23:03:34 -06:00
parent d30a49141e
commit 95ae7d6587
2 changed files with 4 additions and 7 deletions

View File

@@ -27,11 +27,7 @@ class MoonsAdminController extends Controller
$dateInit = Carbon::now();
$date = $dateInit->subDays(30);
$journal = DB::select('SELECT amount, date, description, first_party_id FROM PlayerDonationJournals WHERE corporation_id=9829766 AND date >= DATE_SUB(CURRENT_DATE, INTERVAL 1 MONTH)');
foreach($journal as $journ) {
$journ->first_party_id = $esi->GetCharacterName($journ->first_party_id);
}
$journal = DB::select('SELECT amount, date, reason, description FROM PlayerDonationJournals WHERE corporation_id=9829766 AND date >= DATE_SUB(CURRENT_DATE, INTERVAL 1 MONTH)');
return view('moons.moonjournal')->with('journal', $journal);
}