From 7752e112c44ae6caf8b9e80055773b9fb2893815 Mon Sep 17 00:00:00 2001 From: alvin371 Date: Fri, 1 Dec 2023 11:35:12 +0700 Subject: [PATCH] feat: add admin dashboard page on lab --- src/components/NavigationDrawer.vue | 3 +- src/router/routes/lab.js | 13 ++ src/views/Dashboard/Lab/Admin/index.vue | 239 ++++++++++++++++++++++++ 3 files changed, 254 insertions(+), 1 deletion(-) create mode 100644 src/views/Dashboard/Lab/Admin/index.vue diff --git a/src/components/NavigationDrawer.vue b/src/components/NavigationDrawer.vue index 7c09c4fe..51199639 100644 --- a/src/components/NavigationDrawer.vue +++ b/src/components/NavigationDrawer.vue @@ -120,7 +120,8 @@ export default { { text: "Orders", auth: true, route: { name: "lab-dashboard" } }, { text: "Account", auth: false, route: { name: "lab-dashboard-account" } }, { text: "Services", auth: false, route: { name: "lab-dashboard-services" } }, - { text: "Order History", auth: false, route: { name: "lab-dashboard-order-history" } } + { text: "Order History", auth: false, route: { name: "lab-dashboard-order-history" } }, + { text: "Admin Dashboard", auth: true, route: { name: "lab-dashboard-admin" } } ] }), diff --git a/src/router/routes/lab.js b/src/router/routes/lab.js index b1a0c7f5..56c21a4e 100644 --- a/src/router/routes/lab.js +++ b/src/router/routes/lab.js @@ -174,6 +174,19 @@ const labRoutes = [ else next() }, component: () => import(/* webpackChunkName */ "@/views/Dashboard/Lab/OrderHistory/ProcessOrder") + }, + { + path: "/lab/admin", + name: "lab-dashboard-admin", + meta: { + pageHeader: "Admin Dashboard", + breadcrumbs: [ + { text: "Lab", href: "/lab" }, + { text: "Admin", href: "/lab/admin" }, + { text: "Admin Dashboard", disabled: true } + ] + }, + component: () => import(/* webpackChunkName */ "@/views/Dashboard/Lab/Admin") } ] } diff --git a/src/views/Dashboard/Lab/Admin/index.vue b/src/views/Dashboard/Lab/Admin/index.vue new file mode 100644 index 00000000..69c84089 --- /dev/null +++ b/src/views/Dashboard/Lab/Admin/index.vue @@ -0,0 +1,239 @@ + + + + +