text: import DashboardLayout from "@/views/Layout/DashboardLayout.vue";
  import AuthLayout from "@/views/Pages/AuthLayout.vue";
  
  import NotFound from "@/views/NotFoundPage.vue";
  
  const routes = [
    {
      path: "/",
      redirect: "dashboard",
      component: DashboardLayout,
      children: [
        {
          path: "/dashboard",
          name: "dashboard",
          // route level code-splitting
          // this generates a separate chunk (about.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () =>
            import(/* webpackChunkName: "demo" */ "../views/Dashboard.vue"),
        },
  
        {
          path: "/department",
          name: "Department",
          // route level code-splitting
          // this generates a separate chunk (about.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () =>
            import(
              /* webpackChunkName: "demo" */ "../views/Department/DepartmentList.vue"
            ),
        },
        {
          path: "/department-add",
          name: "department-add-user",
          // route level code-splitting
          // this generates a separate chunk (about.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () =>
            import(
              /* webpackChunkName: "demo" */ "../views/Department/DepartmentAddUser"
            ),
        },
        {
          path: "/doctor",
          name: "Doctor",
          // route level code-splitting
          // this generates a separate chunk (about.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () =>
            import(/* webpackChunkName: "demo" */ "../views/Doctor/DoctorList"),
        },
        {
          path: "/patient",
          name: "Patient",
          // route level code-splitting
          // this generates a separate chunk (about.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () =>
            import(/* webpackChunkName: "demo" */ "../views/Patient/PatientList"),
        },
        {
          path: "/nurse",
          name: "Nurse",
          // route level code-splitting
          // this generates a separate chunk (about.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () =>
            import(/* webpackChunkName: "demo" */ "../views/Nurse/NurseList"),
        },
        {
          path: "/pharmacist",
          name: "Pharmacist",
          // route level code-splitting
          // this generates a separate chunk (about.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () =>
            import(
              /* webpackChunkName: "demo" */ "../views/Pharmacist/PharmacistList"
            ),
        },
  
        {
          path: "/icons",
          name: "icons",
          component: () =>
            import(/* webpackChunkName: "demo" */ "../views/Icons.vue"),
        },
        {
          path: "/profile",
          name: "profile",
          component: () =>
            import(
              /* webpackChunkName: "demo" */ "../views/Pages/UserProfile.vue"
            ),
        },
        {
          path: "/maps",
          name: "maps",
          component: () =>
            import(/* webpackChunkName: "demo" */ "../views/GoogleMaps.vue"),
        },
      ],
    },
    {
      path: "/",
      redirect: "login",
      component: AuthLayout,
      children: [
        {
          path: "/login",
          name: "login",
          component: () =>
            import(/* webpackChunkName: "demo" */ "../views/Pages/Login.vue"),
        },
        {
          path: "/register",
          name: "register",
          component: () =>
            import(/* webpackChunkName: "demo" */ "../views/Pages/Register.vue"),
        },
        { path: "*", component: NotFound },
      ],
    },
  ];
  
  export default routes;
  