initial commit

This commit is contained in:
I-Fun
2026-04-01 08:04:56 +07:00
commit e09c8a5fa9
111 changed files with 18022 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace App\Http\Controllers;
use App\Services\DashboardService;
use Illuminate\View\View;
class DashboardController extends Controller
{
public function __construct(
private readonly DashboardService $dashboardService
) {}
public function index(): View
{
return view('dashboard', [
'stats' => $this->dashboardService->getStats(),
'todayActivities' => $this->dashboardService->getTodayActivities(),
'latestInvoices' => $this->dashboardService->getLatestInvoices(),
'socialStats' => $this->dashboardService->getSocialStats(),
]);
}
}