moved journal for wallet to admin dashboard

This commit is contained in:
2019-12-12 18:31:54 -06:00
parent 297f041a0e
commit c630cd0e59
4 changed files with 10 additions and 12 deletions

View File

@@ -362,15 +362,4 @@ class MoonsAdminController extends Controller
//Redirect to the update moon page
return redirect('/moons/admin/updatemoon')->with('success', 'Moon Updated');
}
public function showJournalEntries() {
$this->middleware('role:Admin');
$dateInit = Carbon::now();
$date = $dateInit->subDays(30);
$journal = DB::select('SELECT amount,reason,description,date FROM `player_donation_journal` WHERE corporation_id=98287666 AND date >= DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 1 MONTH) ORDER BY date DESC');
return view('moons.admin.moonjournal')->with('journal', $journal);
}
}