diff --git a/src/app/Http/Controllers/HomeController.php b/src/app/Http/Controllers/HomeController.php new file mode 100644 index 00000000..861545d9 --- /dev/null +++ b/src/app/Http/Controllers/HomeController.php @@ -0,0 +1,18 @@ +select('stationid', 'name', 'district', 'lat', 'lng', 'rainfall', 'waterlevel', 'siren') + ->orderBy('stationid') + ->get(); + + return view('layout.dashboard', compact('stations')); + } +} \ No newline at end of file