diff --git a/app/Controllers/Home.php b/app/Controllers/Home.php index 8a6bedb..779af36 100644 --- a/app/Controllers/Home.php +++ b/app/Controllers/Home.php @@ -6,7 +6,36 @@ class Home extends BaseController { public function index(): string { - return view('home'); + $fleet = [ + [ + "image" => "/assets/images/car-1.jpg", + "title" => "Car 1 name", + ] , + [ + "image" => "/assets/images/car-2.jpg", + "title" => "Car 2 name", + ] , + [ + "image" => "/assets/images/car-3.jpg", + "title" => "Car 3 name", + ] , + [ + "image" => "/assets/images/car-1.jpg", + "title" => "Car 4 name", + ] , + [ + "image" => "/assets/images/car-2.jpg", + "title" => "Car 5 name", + ] , + [ + "image" => "/assets/images/car-3.jpg", + "title" => "Car 6 name", + ] , + + ]; + $in["fleet"] = $fleet; + + return view('home', $in); } public function about(): string { @@ -25,4 +54,6 @@ class Home extends BaseController return view('our-services'); } + + } diff --git a/app/Views/home.php b/app/Views/home.php index 41732ef..5265ae9 100644 --- a/app/Views/home.php +++ b/app/Views/home.php @@ -155,369 +155,45 @@
-