feat(dashboard): add sidebar, navbar, dynamic routes, summary & trend API, NIPH theme

This commit is contained in:
2026-03-03 16:40:56 +07:00
commit eb26018853
74 changed files with 12244 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Http\Controllers;
use App\Models\Surveillance;
class DashboardController extends Controller
{
public function overview()
{
$programs = Surveillance::all();
return view('dashboard.overview', compact('programs'));
}
public function detail($code)
{
$selected = Surveillance::where('code', strtoupper($code))->firstOrFail();
return view('dashboard.detail', compact('selected'));
}
}