const complaintMain = () =>
  import("@/modules/11_discipline/components/1_Complaint/MainPage.vue");
const factsMain = () =>
  import("@/modules/11_discipline/components/2_InvestigateFacts/MainPage.vue");
const investigatefactsAdd = () =>
  import("@/modules/11_discipline/components/2_InvestigateFacts/AddPage.vue");
const investigatefactsEdit = () =>
  import("@/modules/11_discipline/components/2_InvestigateFacts/EditPage.vue");
const disciplinaryMain = () =>
  import(
    "@/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue"
  );
const disciplinaryEdit = () =>
  import(
    "@/modules/11_discipline/components/3_InvestigateDisciplinary/EditPage.vue"
  );
const report = () =>
  import("@/modules/11_discipline/components/5_Report/MainPage.vue");
const directorMain = () =>
  import(
    "@/modules/11_discipline/components/6_BasicInformation/Director/MainPage.vue"
  );
const directorAdd = () =>
  import(
    "@/modules/11_discipline/components/6_BasicInformation/Director/AddPage.vue"
  );
const directorEdit = () =>
  import(
    "@/modules/11_discipline/components/6_BasicInformation/Director/EditPage.vue"
  );
const channelMain = () =>
  import(
    "@/modules/11_discipline/components/6_BasicInformation/Channel/MainPage.vue"
  );
const channelAdd = () =>
  import(
    "@/modules/11_discipline/components/6_BasicInformation/Channel/AddPage.vue"
  );
const channelEdit = () =>
  import(
    "@/modules/11_discipline/components/6_BasicInformation/Channel/EditPage.vue"
  );
const complaintAdd = () =>
  import("@/modules/11_discipline/components/1_Complaint/AddComplaintPage.vue");
const complaintEdit = () =>
  import("@/modules/11_discipline/components/1_Complaint/EditPage.vue");
const reportType = () =>
  import("@/modules/11_discipline/components/5_Report/DetailPage.vue");
const InvestigateDisciplinaryAdd = () =>
  import(
    "@/modules/11_discipline/components/3_InvestigateDisciplinary/AddPage.vue"
  );
const oredrMain = () =>
  import("@/modules/11_discipline/components/9_Order/MainPage.vue");

/** หน้ารายการสรุปผลการพิจารณาทางวินัย */
const resultMainPage = () =>
  import("@/modules/11_discipline/components/4_Result/MainPage.vue");
const resultEditPage = () =>
  import("@/modules/11_discipline/components/4_Result/EditPage.vue");

// รายชื่อผู้ถูกพักราชการ
const listSuspendMainPage = () =>
  import("@/modules/11_discipline/components/7_ListSuspend/ListsPage.vue");
const suspendEditPage = () =>
  import("@/modules/11_discipline/components/7_ListSuspend/DetailPage.vue");

const appealComplain = () =>
  import("@/modules/11_discipline/components/8_AppealComplain/MainPage.vue");
const appealComplainAdd = () =>
  import("@/modules/11_discipline/components/8_AppealComplain/AddPage.vue");
const appealComplainEdit = () =>
  import("@/modules/11_discipline/components/8_AppealComplain/EditPage.vue");

const DetailPage = () => import("@/modules/10_order/components/Detail.vue");
export default [
  {
    path: "/discipline/complaints",
    name: "disciplineComplaints",
    component: complaintMain,
    meta: {
      Auth: true,
      Key: [11.1],
      Role: "discipline",
    },
  },
  {
    path: "/discipline/complaints/add",
    name: "disciplineComplaintsAdd",
    component: complaintAdd,
    meta: {
      Auth: true,
      Key: [11.1],
      Role: "discipline",
    },
  },
  {
    path: "/discipline/complaints/:id",
    name: "disciplineComplaintsEdit",
    component: complaintEdit,
    meta: {
      Auth: true,
      Key: [11.1],
      Role: "discipline",
    },
  },
  {
    path: "/discipline/investigatefacts",
    name: "disciplineInvestigatefacts",
    component: factsMain,
    meta: {
      Auth: true,
      Key: [11.2],
      Role: "discipline",
    },
  },
  {
    path: "/discipline/disciplinary",
    name: "disciplineDisciplinary",
    component: disciplinaryMain,
    meta: {
      Auth: true,
      Key: [11.3],
      Role: "discipline",
    },
  },
  {
    path: "/discipline/disciplinary/:id",
    name: "disciplineDisciplinaryEdit",
    component: disciplinaryEdit,
    meta: {
      Auth: true,
      Key: [11.3],
      Role: "discipline",
    },
  },
  {
    path: "/discipline-result",
    name: "disciplineResult",
    component: resultMainPage,
    meta: {
      Auth: true,
      Key: [11.4],
      Role: "discipline",
    },
  },
  {
    path: "/discipline-result/:id",
    name: "disciplineEditResult",
    component: resultEditPage,
    meta: {
      Auth: true,
      Key: [11.4],
      Role: "discipline",
    },
  },
  {
    path: "/discipline/report",
    name: "disciplineReport",
    component: report,
    meta: {
      Auth: true,
      Key: [11.5],
      Role: "discipline",
    },
  },
  {
    path: "/discipline/report/:type",
    name: "disciplineReportType",
    component: reportType,
    meta: {
      Auth: true,
      Key: [11.5],
      Role: "discipline",
    },
  },
  // ข้อมูลพื้นฐาน กรรมการ
  {
    path: "/discipline/director",
    name: "disciplineDirector",
    component: directorMain,
    meta: {
      Auth: true,
      Key: [11.6],
      Role: "discipline",
    },
  },
  {
    path: "/discipline/director/add",
    name: "disciplineDirectorAdd",
    component: directorAdd,
    meta: {
      Auth: true,
      Key: [11.6],
      Role: "discipline",
    },
  },
  {
    path: "/discipline/director/:id",
    name: "disciplineDirectorEdit",
    component: directorEdit,
    meta: {
      Auth: true,
      Key: [11.6],
      Role: "discipline",
    },
  },
  {
    path: "/discipline/channel",
    name: "disciplineChannel",
    component: channelMain,
    meta: {
      Auth: true,
      Key: [11.6],
      Role: "discipline",
    },
  },
  {
    path: "/discipline/investigatefacts/add",
    name: "disciplineInvestigatefactsAdd",
    component: investigatefactsAdd,
    meta: {
      Auth: true,
      Key: [11.2],
      Role: "discipline",
    },
  },
  {
    path: "/discipline/investigatefacts/:id",
    name: "disciplineInvestigatefactsEdit",
    component: investigatefactsEdit,
    meta: {
      Auth: true,
      Key: [11.2],
      Role: "discipline",
    },
  },
  {
    path: "/discipline/investigate-disciplinary/add",
    name: "disciplineInvestigateDisciplinaryAdd",
    component: InvestigateDisciplinaryAdd,
    meta: {
      Auth: true,
      Key: [11.3],
      Role: "discipline",
    },
  },
  {
    path: "/discipline/channel/add",
    name: "disciplineChannelAdd",
    component: channelAdd,
    meta: {
      Auth: true,
      Key: [11.2],
      Role: "discipline",
    },
  },
  {
    path: "/discipline/channel/:id",
    name: "disciplineChannelEdit",
    component: channelEdit,
    meta: {
      Auth: true,
      Key: [11.2],
      Role: "discipline",
    },
  },
  {
    path: "/discipline-suspend",
    name: "disciplineListSuspend",
    component: listSuspendMainPage,
    meta: {
      Auth: true,
      Key: [11.4],
      Role: "discipline",
    },
  },
  {
    path: "/discipline-suspend/:id",
    name: "disciplineEditSuspend",
    component: suspendEditPage,
    meta: {
      Auth: true,
      Key: [11.4],
      Role: "discipline",
    },
  },
  {
    path: "/discipline-appealcomplain",
    name: "appealComplain",
    component: appealComplain,
    meta: {
      Auth: true,
      Key: [11.4],
      Role: "discipline",
    },
  },
  {
    path: "/discipline-appealcomplain/add",
    name: "appealComplainAdd",
    component: appealComplainAdd,
    meta: {
      Auth: true,
      Key: [11.4],
      Role: "discipline",
    },
  },
  {
    path: "/discipline-appealcomplain/:id",
    name: "appealComplainEdit",
    component: appealComplainEdit,
    meta: {
      Auth: true,
      Key: [11.4],
      Role: "discipline",
    },
  },

  {
    path: "/discipline-order",
    name: "disciplineOrder",
    component: oredrMain,
    meta: {
      Auth: true,
      Key: [11.4],
      Role: "discipline",
    },
  },
  {
    path: "/discipline-order/add",
    name: "disciplineOrderAdd",
    component: DetailPage,
    meta: {
      Auth: true,
      Key: [11.4],
      Role: "discipline",
    },
  },
  {
    path: "/discipline-order/detail/:orderid",
    name: "disciplineOrderDatail",
    component: DetailPage,
    meta: {
      Auth: true,
      Key: [11.4],
      Role: "discipline",
    },
  },
];
