Implement HomeController, update home route, and enhance menu components with close functionality

This commit is contained in:
pacnpal
2025-02-25 16:49:45 -05:00
parent b4462ba89e
commit 8951e59f49
14 changed files with 511 additions and 233 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Http\Controllers;
use App\Models\Park;
use App\Models\ParkArea;
class HomeController extends Controller
{
public function index()
{
return view('home', [
'total_parks' => Park::count(),
'total_attractions' => ParkArea::count(),
'total_coasters' => ParkArea::where('type', 'roller_coaster')->count(),
]);
}
}