//#region Truck
import { Truck, TruckMaint, TruckSpec } from "@/views/trucks";
//#endregion

import HomeView from "@/views/home/index.vue";

const NotFound = () => import("@/views/404.vue");
const Unauthorized = () => import("@/views/unauthorized.vue");
const TestUnauthorized = () => import("@/views/test-unauthorized.vue");

import { AssetsRoutes } from "./assets";
import { OperationRoutes } from "./operations";
import { HrRoutes } from "./hr";
import { CmsRoutes } from "./cms";
import { CrmRoutes } from "./crm";
import { SystemRoutes } from "./system";
import { OrderRoutes } from "./order";
import { AuthRoutes } from "./auth";
import { UtilitiesRoutes } from "./utilities";
import { FinanceRoutes } from "./finance";
import { ReportRoutes } from "./reports";
import { ReconciliationRoutes } from "./reconciliation";
import { ProfileRoutes } from "./profile";
import { MonitoringRoutes } from "./monitoring";
import { FuelManagementRoutes } from "./fuelManagement";
import { VatInvoiceRoutes } from "./vatInvoice";
import { PremiseRoutes } from "./premise";
export const routes = [
  ...AssetsRoutes,
  ...OperationRoutes,
  ...HrRoutes,
  ...CmsRoutes,
  ...CrmRoutes,
  ...SystemRoutes,
  ...OrderRoutes,
  ...AuthRoutes,
  ...UtilitiesRoutes,
  ...FinanceRoutes,
  ...ReportRoutes,
  ...ReconciliationRoutes,
  ...ProfileRoutes,
  ...MonitoringRoutes,
  ...FuelManagementRoutes,
  ...VatInvoiceRoutes,
  ...PremiseRoutes,
  {
    name: "home",
    path: "/",
    component: HomeView,
    meta: {
      title: "Trang chủ",
    },
  },
  {
    name: "unauthorized",
    path: "/khong-co-quyen-truy-cap",
    component: Unauthorized,
    meta: {
      title: "Không có quyền truy cập",
    },
  },
  {
    name: "test-unauthorized",
    path: "/test-unauthorized",
    component: TestUnauthorized,
    meta: {
      title: "Test Unauthorized",
    },
  },

  {
    name: "TruckMaint",
    path: "/bao-tri-xe-tai",
    component: TruckMaint,
    meta: {
      title: "Bảo trì xe tải",
    },
  },

  { path: "/:catchAll(.*)", component: NotFound, title: "Không tìm thấy" },
];
