mirror of
https://github.com/slawkens/myaac.git
synced 2026-03-16 16:03:31 +01:00
feat: Dashboard Insights
This commit is contained in:
22
admin/pages/modules/insights.php
Normal file
22
admin/pages/modules/insights.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
use MyAAC\Admin\Insights;
|
||||
|
||||
defined('MYAAC') or die('Direct access not allowed!');
|
||||
|
||||
$getYear = (int)($_GET['year'] ?? date('Y'));
|
||||
$getMonth = $_GET['month'] ?? (int)date('M') + 1;
|
||||
|
||||
$insights = new Insights($db);
|
||||
|
||||
$twig->display('insights.html.twig', [
|
||||
'lastLoginPlayers' => $insights->getLastLoggedPlayers($getYear, $getMonth),
|
||||
'lastCreatedAccounts' => $insights->getLastCreatedAccounts($getYear, $getMonth),
|
||||
|
||||
'firstYear' => $insights->getFirstYear(),
|
||||
|
||||
'getYear' => $getYear,
|
||||
'getMonth' => $getMonth,
|
||||
|
||||
'months' => $insights->getMonths(),
|
||||
]);
|
||||
Reference in New Issue
Block a user