new
Some checks failed
Close Pull Request / main (pull_request_target) Has been cancelled

This commit is contained in:
yangsh
2025-12-09 17:28:31 +09:00
parent f5eb8d4788
commit 735120f1cb
378 changed files with 24267 additions and 9248 deletions

View File

@@ -0,0 +1,45 @@
<?php
namespace App\Controllers\home;
use App\Controllers\BaseController;
use App\Models\Home\HomeModel;
class Home extends BaseController
{
private $homeModel;
private $sdate = '';
private $edate = '';
public function __construct()
{
$this->sdate = date('Y-m-d', strtotime('-1 month'));
$this->edate = date('Y-m-d');
$this->homeModel = new HomeModel();
}
public function index()
{
}
public function dashboard(): string
{
$notice = $this->homeModel->getNoticeList();
$statistics = $this->homeModel->getHomeStatistics($this->sdate, $this->edate);
return view('pages/home/dashboard', [
'menus' => $this->data,
'notice' => $notice,
'statistics' => $statistics,
]);
}
}