diff --git a/app/controllers/Admin/Blogs.php b/app/controllers/Admin/Blogs.php new file mode 100755 index 00000000..f06b3d99 --- /dev/null +++ b/app/controllers/Admin/Blogs.php @@ -0,0 +1,15 @@ +view('admin/item'); + } + + public function item(string $a = '', string $b = '', string $c = ''):void { + $this->view('admin/item'); + }} + + +?> \ No newline at end of file diff --git a/app/controllers/Admin/RentalServices.php b/app/controllers/Admin/RentalServices.php index cc6f6312..bcac1788 100755 --- a/app/controllers/Admin/RentalServices.php +++ b/app/controllers/Admin/RentalServices.php @@ -4,7 +4,12 @@ class RentalServices { use Controller; public function index(string $a = '', string $b = '', string $c = ''):void { - $this->view('admin/rentalServices'); + + $rentalServices = new RentalServiceModel(); + $data['rentalServices'] = $rentalServices->findAll(); + // show($data); + + $this->view('admin/rentalServices', $data); } public function item(string $a = '', string $b = '', string $c = ''):void { diff --git a/app/models/RentalService.php b/app/models/RentalService.php index 1a3b9e22..8063d755 100755 --- a/app/models/RentalService.php +++ b/app/models/RentalService.php @@ -114,4 +114,5 @@ public function updateRentalservice(array $data) return $this->update($_SESSION['USER']->id, $data, 'id'); } + } \ No newline at end of file diff --git a/app/views/admin/chart.view.php b/app/views/admin/chart.view.php index 75c8550a..3f33c020 100755 --- a/app/views/admin/chart.view.php +++ b/app/views/admin/chart.view.php @@ -1,5 +1,7 @@ diff --git a/app/views/admin/components/navbar.php b/app/views/admin/components/navbar.php index f8d0f461..9da848f0 100755 --- a/app/views/admin/components/navbar.php +++ b/app/views/admin/components/navbar.php @@ -1,17 +1,87 @@ - + + + + \ No newline at end of file diff --git a/app/views/admin/customer.view.php b/app/views/admin/customer.view.php index acbce486..5aa1d895 100755 --- a/app/views/admin/customer.view.php +++ b/app/views/admin/customer.view.php @@ -1,5 +1,7 @@ @@ -10,7 +12,7 @@ Name Email - Status + Action @@ -18,13 +20,13 @@ Sandaruwan sandaruwan@example.com - Accepted + Sarani sarani@example.com - Not Accepted + diff --git a/app/views/admin/dashboard.view.php b/app/views/admin/dashboard.view.php index fa721a1a..88370ebb 100755 --- a/app/views/admin/dashboard.view.php +++ b/app/views/admin/dashboard.view.php @@ -1,5 +1,7 @@ diff --git a/app/views/admin/guides.view.php b/app/views/admin/guides.view.php index ec67bd07..e0d8b53f 100755 --- a/app/views/admin/guides.view.php +++ b/app/views/admin/guides.view.php @@ -1,5 +1,7 @@ diff --git a/app/views/admin/item.view.php b/app/views/admin/item.view.php index 689813f7..76fed516 100755 --- a/app/views/admin/item.view.php +++ b/app/views/admin/item.view.php @@ -1,5 +1,7 @@ diff --git a/app/views/admin/layout/sidebar.php b/app/views/admin/layout/sidebar.php index 6309e357..7d251ca7 100755 --- a/app/views/admin/layout/sidebar.php +++ b/app/views/admin/layout/sidebar.php @@ -1,13 +1,13 @@