import { createRouter, createWebHistory } from "vue-router";

const MainLayout = () => import("@/views/MainLayout.vue");
const Metadata = () => import("@/modules/01_metadata/views/Main.vue");
const Organizational = () =>
  import("@/modules/02_organizational/views/Main.vue");
const Registration = () => import("@/modules/03_registration/views/Main.vue");
const Registemployee = () =>
  import("@/modules/04_registry-employee/views/Main.vue");
const Order = () => import("@/modules/05_order/views/Main.vue");
const Recruitmain = () => import("@/modules/06_recruitmain/views/Main.vue");
const Placement = () => import("@/modules/07_placement/views/Main.vue");
const Retirement = () => import("@/modules/08_retirement/views/Main.vue");
const Insignia = () => import("@/modules/09_insignia/views/Main.vue");

const Leaveuser = () => import("@/modules/10_leaveuser/views/Main.vue");
const Leaveadmin = () => import("@/modules/11_leaveadmin/views/Main.vue");
const Estimate = () => import("@/modules/12_estimate/views/Main.vue");
const Discipline = () => import("@/modules/13_discipline/views/Main.vue");

const Contact = () => import("@/modules/00_contact/views/Main.vue");

const Maintenance = () => import("@/modules/001_Maintenance/views/Main.vue");

const router = createRouter({
  history: createWebHistory(`/faq/`),
  routes: [
    {
      path: "/",
      name: "home",
      component: MainLayout,
      children: [
        {
          path: "/metadata",
          name: "metadata",
          component: Metadata,
        },
        {
          path: "/organizational",
          name: "organizational",
          component: Organizational,
        },

        {
          path: "/registration",
          name: "registration",
          component: Registration,
        },

        {
          path: "/contact",
          name: "contact",
          component: Contact,
        },

        {
          path: "/maintenance",
          name: "maintenance",
          component: Maintenance,
        },

        {
          path: "/registemployee",
          name: "Registemployee",
          component: Registemployee,
        },

        {
          path: "/order",
          name: "Order",
          component: Order,
        },

        {
          path: "/recruitmain",
          name: "Recruitmain",
          component: Recruitmain,
        },

        {
          path: "/placement",
          name: "Placement",
          component: Placement,
        },

        {
          path: "/retirement",
          name: "Retirement",
          component: Retirement,
        },

        {
          path: "/insignia",
          name: "Insignia",
          component: Insignia,
        },

        {
          path: "/leaveuser",
          name: "leaveuser",
          component: Leaveuser,
        },

        {
          path: "/leaveadmin",
          name: "leaveadmin",
          component: Leaveadmin,
        },

        {
          path: "/estimate",
          name: "estimate",
          component: Estimate,
        },

        {
          path: "/discipline",
          name: "discipline",
          component: Discipline,
        },
      ],
    },
  ],
});

export default router;
