const MenuView = () => import("@/views/menus/index.vue");
const LocationView = () => import("@/views/locations/index.vue");
const RouteConfigView = () => import("@/views/categories/routeConfig.vue");
const AgencyView = () => import("@/views/categories/agencies/index.vue");
const AgencyCoverageView = () =>
  import("@/views/categories/agencies/coverage.vue");
const RoleView = () => import("@/views/users/roles.vue");
const UserView = () => import("@/views/users/index.vue");
const CallPathView = () => import("@/views/settings/callPath/index.vue");
const AppConfigView = () => import("@/views/system/appconfig/index.vue");
const BankView = () => import("@/views/categories/banks/index.vue");
import PermissionList from "../views/permissions/PermissionList.vue";

export const SystemRoutes = [
  {
    name: "menu",
    path: "/menu",
    component: MenuView,
    meta: { title: "Quản lý menu" },
  },
  {
    name: "location",
    path: "/location",
    component: LocationView,
    meta: { title: "Quản lý vị trí" },
  },
  {
    name: "route",
    path: "/tuyen",
    component: RouteConfigView,
    meta: { title: "Quảng lý tuyến" },
  },
  {
    name: "agency",
    path: "/quan-ly-chi-nhanh",
    component: AgencyView,
    meta: { title: "Quản lý chi nhánh" },
  },
  {
    name: "agency.coverage",
    path: "/cap-nhat-vung-phu/:agencyId?",
    component: AgencyCoverageView,
    meta: { title: "Cập nhật vùng phủ" },
  },
  {
    name: "user",
    path: "/quan-ly-nguoi-dung",
    component: UserView,
    meta: { title: "Quản lý người dùng" },
  },
  {
    name: "role",
    path: "/quan-ly-quyen",
    component: RoleView,
    meta: { title: "Quản lý quyền" },
  },
  {
    name: "callpath",
    path: "/call-path",
    component: CallPathView,
    meta: { title: "Quản lý CallPath" },
  },
  {
    path: "/quan-ly-vai-tro",
    name: "PermissionList",
    component: PermissionList,
    meta: { title: "Quản lý vai trò" },
  },
  {
    name: "appconfig",
    path: "/cau-hinh-ung-dung",
    component: AppConfigView,
    meta: { title: "Cấu hình ứng dụng" },
  },
  {
    name: "bank",
    path: "/quan-ly-ngan-hang",
    component: BankView,
    meta: { title: "Quản lý ngân hàng" },
  },
];
