Files
confirms/app/Controllers/home/Home.php
yangsh 735120f1cb
Some checks failed
Close Pull Request / main (pull_request_target) Has been cancelled
new
2025-12-09 17:28:31 +09:00

46 lines
822 B
PHP

<?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,
]);
}
}