import WeeklyTimesheet from "./views/WeeklyTimesheet.vue";
import History from "./views/History.vue";
import Approvals from "./views/Approvals.vue";
import Reports from "./views/Reports.vue";

export const hourRegistrationRoutes = [
  {
    path: "hours/week",
    name: "hours-week",
    meta: {
      module: "hours",
      permission: "hours.week.manage",
      breadcrumb: ["Hours", "Weekly timesheet"],
      title: "Weekly timesheet",
    },
    component: WeeklyTimesheet,
  },
  {
    path: "hours/history",
    name: "hours-history",
    meta: {
      module: "hours",
      permission: "hours.week.manage",
      breadcrumb: ["Hours", "History"],
      title: "My hour history",
    },
    component: History,
  },
  {
    path: "hours/approvals",
    name: "hours-approvals",
    meta: {
      module: "hours",
      permission: "hours.approve",
      breadcrumb: ["Hours", "Approvals"],
      title: "Hour approvals",
    },
    component: Approvals,
  },
  {
    path: "hours/reports",
    name: "hours-reports",
    meta: {
      module: "hours",
      permission: "hours.reports.view",
      breadcrumb: ["Hours", "Reports"],
      title: "Hour reports",
    },
    component: Reports,
  },
];
