const JobView = () => import("@/views/hr/job/index.vue");
const CreateOrUpdateJobView = () => import("@/views/hr/job/createOrUpdate.vue");
const CandidateView = () => import("@/views/hr/candidate/index.vue");
const CandidateDetailView = () =>
  import("@/views/hr/candidate/CandidateDetail.vue");
const AttendanceView = () => import("@/views/hr/attendance/index.vue");
const AttendanceReportView = () => import("@/views/hr/attendance/AttendanceReport.vue");
const AttendanceDetailView = () => import("@/views/hr/attendance/AttendanceDetail.vue");
export const HrRoutes = [
  {
    name: "hr-job",
    path: "/viec-lam",
    component: JobView,
    meta: {
      title: "Quản lý việc làm",
    },
  },
  {
    name: "hr-job-create",
    path: "/tao-viec-lam",
    component: CreateOrUpdateJobView,
    meta: {
      title: "Tạo việc làm",
    },
  },
  {
    name: "hr-job-update",
    path: "/cap-nhat-viec-lam/:id",
    component: CreateOrUpdateJobView,
    props: true,
    meta: {
      title: "Cập nhật việc làm",
    },
  },
  {
    name: "hr-candidate",
    path: "/ung-vien",
    component: CandidateView,
    meta: {
      title: "Quản lý ứng viên",
    },
  },
  {
    name: "hr-candidate-detail",
    path: "/ung-vien/:id",
    component: CandidateDetailView,
    props: true,
    meta: {
      title: "Chi tiết ứng viên",
    },
  },
  {
    name: "hr-attendance",
    path: "/cham-cong",
    component: AttendanceView,
    meta: {
      title: "Quản lý chấm công",
    },
  },
  {
    name: "hr-attendance-report",
    path: "/bao-cao-cham-cong",
    component: AttendanceReportView,
    meta: {
      title: "Báo cáo chấm công",
    },
  },
  {
    name: "hr-attendance-detail",
    path: "/chi-tiet-cham-cong/:userId",
    component: AttendanceDetailView,
    props: true,
    meta: {
      title: "Chi tiết chấm công",
    },
  },
];
