// registry
const registryPage = () => import("@/modules/10_registry/views/main.vue");

const registryInformation = () =>
  import("@/modules/10_registry/tabs/01_information.vue");
const registryGovernment = () =>
  import("@/modules/10_registry/tabs/02_government.vue");
const registrySalary = () => import("@/modules/10_registry/tabs/03_salary.vue");
const registryAchievement = () =>
  import("@/modules/10_registry/tabs/04_Achievement.vue");
const registryOther = () => import("@/modules/10_registry/tabs/05_other.vue");

/**
 * คำร้องแก้ไข
 */
const requestEditMain = () =>
  import("@/modules/10_registry/views/requestEditMain.vue");
const requestEditDetail = () =>
  import("@/modules/10_registry/views/requestEditDetail.vue");
const positionReviewPage = () =>
  import("@/modules/10_registry/views/positionReview.vue");

export default [
  {
    path: "/registry",
    name: "registryMain",
    component: registryPage,
    meta: {
      Auth: true,
      Key: [10],
    },
  },

  {
    path: "/registry/information",
    name: "registryInformation",
    component: registryInformation,
    meta: {
      Auth: true,
      Key: [10],
    },
  },
  {
    path: "/registry/government",
    name: "registryGovernment",
    component: registryGovernment,
    meta: {
      Auth: true,
      Key: [10],
    },
  },
  {
    path: "/registry/salary",
    name: "registrySalary",
    component: registrySalary,
    meta: {
      Auth: true,
      Key: [10],
    },
  },
  {
    path: "/registry/achievement",
    name: "achievement",
    component: registryAchievement,
    meta: {
      Auth: true,
      Key: [10],
    },
  },
  {
    path: "/registry/other",
    name: "registryOther",
    component: registryOther,
    meta: {
      Auth: true,
      Key: [10],
    },
  },

  {
    path: "/registry/request-edit",
    name: "request-edit",
    component: requestEditMain,
    meta: {
      Auth: true,
      Key: [10],
    },
  },
  {
    path: "/registry/request-edit/:id",
    name: "request-edit-id",
    component: requestEditDetail,
    meta: {
      Auth: true,
      Key: [10],
    },
  },

  // ตรวจสอบข้อมูลตำแหน่งและเงินเดือน
  {
    path: "/registry/position-review",
    name: "position-review",
    component: positionReviewPage,
    meta: {
      Auth: true,
      Key: [10],
    },
  },
];
