diff --git a/app/controllers/Customer.php b/app/controllers/Customer.php new file mode 100644 index 00000000..c921a734 --- /dev/null +++ b/app/controllers/Customer.php @@ -0,0 +1,14 @@ +view('customer/profile'); + } +} \ No newline at end of file diff --git a/app/controllers/Profile.php b/app/controllers/Profile.php index 19df606d..2641d419 100755 --- a/app/controllers/Profile.php +++ b/app/controllers/Profile.php @@ -4,6 +4,22 @@ class Profile { use Controller; public function index(string $a = '', string $b = '', string $c = ''):void { - $this->view('profile'); + + $user = $_SESSION['USER']; + // echo $user->role; + + if ($user->role == 'customer') { + $this->view('customer/profile'); + } else if ($user->role == 'guide') { + $this->view('guide/profile'); + } else if ($user->role == 'admin') { + $this->view('rental-service/profile'); + } + + // else { + // $this->view('profile'); + // } + + // $this->view('profile'); } } \ No newline at end of file diff --git a/app/views/customer/profile.view.php b/app/views/customer/profile.view.php new file mode 100755 index 00000000..844cb71d --- /dev/null +++ b/app/views/customer/profile.view.php @@ -0,0 +1,329 @@ + + +
Name | +Status | +Type | +Date | +Time | +
---|---|---|---|---|
Glazers Camping | +Upcoming | +Equipment | +02/12/2023 | +10.00 | +
Glazers Camping | +Upcoming | +Equipment | +02/12/2023 | +10.00 | +
Sarath | +Done | +Guide | +01/09/2023 | +10.00 | +