diff --git a/src/Controller/StaffController.php b/src/Controller/StaffController.php new file mode 100644 index 0000000..4cd7f29 --- /dev/null +++ b/src/Controller/StaffController.php @@ -0,0 +1,47 @@ +navLinks = [ + 'admin_dashboard' => 'nav-link text-dark', + 'user_dashboard' => 'nav-link text-dark', + 'profile' => 'nav-link text-dark', + 'user_list' => 'nav-link text-dark', + 'staff_dashboard' => 'nav-link text-dark', + ]; + } + + #[Route('/staff-dashboard', name: 'staff')] + public function staffDashboard(#[CurrentUser()] User $user): Response + { + $this->navLinks['staff_dashboard'] = 'nav-link text-white active bg-gradient-dark'; + + return $this->render( + 'internal/staff/staff-dashboard.html.twig', + array_merge( + $this->navLinks, + [ + 'breadcrumbs' => [ + 'Staff Dashboard' + ], + 'notifications' => $user->retrieveUnreadNotifications(), + ] + ) + ); + } +}