const DefaultQuotation = () =>
  import("@/views/finances/quotations/default/index.vue");
const CheckFee = () => import("@/views/finances/quotations/checkFee.vue");

const Wallets = () => import("@/views/finances/wallets/index.vue");
const Cashiers = () => import("@/views/finances/wallets/cashiers.vue");
const WalletDetail = () =>
  import("@/views/finances/wallets/WalletDetailOptimized.vue");
const MyWallet = () => import("@/views/finances/wallets/MyWallet.vue");
const TransactionDetail = () =>
  import("@/views/finances/transactions/TransactionDetail.vue");
const TransactionDetailDemo = () =>
  import("@/views/finances/transactions/TransactionDetailDemo.vue");

// Transfer Payment Bill components
const TransferPaymentBill = () =>
  import("@/views/finances/transfer-payment-bill/index.vue");
const TransferPaymentBillSearchCustomers = () =>
  import("@/views/finances/transfer-payment-bill/search-customers.vue");

const TransferPaymentBillCreate = () =>
  import("@/views/finances/transfer-payment-bill/create.vue");
const TransferPaymentBillDetail = () =>
  import("@/views/finances/transfer-payment-bill/detail.vue");
const TransferPaymentBillList = () =>
  import("@/views/finances/transfer-payment-bill/list.vue");

// Expense components
const Expenses = () => import("@/views/finances/expenses/index.vue");
const ExpenseDetail = () => import("@/views/finances/expenses/detail.vue");

// Expense Category components
const ExpenseCategories = () =>
  import("@/views/finances/expense-categories/index.vue");

// Income components
const Incomes = () => import("@/views/finances/incomes/index.vue");

// Income Category components
const IncomeCategories = () =>
  import("@/views/finances/income-categories/index.vue");

// Bank Account components
const BankAccounts = () => import("@/views/finances/bank-accounts/index.vue");
const BankAccountDetail = () =>
  import("@/views/finances/bank-accounts/detail.vue");
const BankAccountCreateOrUpdate = () =>
  import("@/views/finances/bank-accounts/create-or-update.vue");
const BankAccountImportStatement = () =>
  import("@/views/finances/bank-accounts/import-statement.vue");
const BankAccountTransactions = () =>
  import("@/views/finances/bank-accounts/transactions.vue");
const BankAccountImportHistory = () =>
  import("@/views/finances/bank-accounts/import-history.vue");
export const FinanceRoutes = [
  {
    name: "checkDefaultFee",
    path: "/tra-cuu-cuoc-phi",
    component: CheckFee,

    meta: {
      title: "Tra cứu cước phí",
    },
  },

  {
    name: "defaultquotation",
    path: "/bang-gia-mac-dinh",
    component: DefaultQuotation,
    meta: {
      title: "Bảng giá mặc định",
    },
  },

  {
    name: "wallets",
    path: "/quan-ly-vi-tien",
    component: Wallets,
    meta: {
      title: "Quản lý ví tiền",
    },
  },
  {
    name: "my-wallet",
    path: "/vi-cua-toi",
    component: MyWallet,
    meta: {
      title: "Ví của tôi",
    },
  },
  {
    name: "wallet-detail",
    path: "/quan-ly-vi-tien/:id",
    component: WalletDetail,
    meta: {
      title: "Chi tiết ví",
    },
  },
  {
    name: "cashiers",
    path: "/quan-ly-nhan-tien",
    component: Cashiers,
    meta: {
      title: "Quản lý nhận tiền",
    },
  },
  {
    name: "transaction-detail",
    path: "/chi-tiet-giao-dich/:id",
    component: TransactionDetail,
    meta: {
      title: "Chi tiết giao dịch",
    },
  },
  // {
  //   name: "transaction-detail-demo",
  //   path: "/demo-chi-tiet-giao-dich",
  //   component: TransactionDetailDemo,
  //   meta: {
  //     title: "Demo Chi tiết giao dịch",
  //   },
  // },

  // Transfer Payment Bill routes
  {
    name: "transfer-payment-bill",
    path: "/hoa-don-thanh-toan-chuyen-khoan",
    component: TransferPaymentBill,
    meta: {
      title: "Hóa đơn thanh toán chuyển khoản",
    },
  },
  {
    name: "transfer-payment-bill-search-customers",
    path: "/hoa-don-thanh-toan-chuyen-khoan/tim-khach-hang",
    component: TransferPaymentBillSearchCustomers,
    meta: {
      title: "Tìm kiếm khách hàng",
    },
  },

  {
    name: "transfer-payment-bill-create",
    path: "/hoa-don-thanh-toan-chuyen-khoan/tao-moi/:customerId",
    component: TransferPaymentBillCreate,
    props: true,
    meta: {
      title: "Tạo phiếu chuyển tiền",
    },
  },
  {
    name: "transfer-payment-bill-list",
    path: "/hoa-don-thanh-toan-chuyen-khoan/danh-sach",
    component: TransferPaymentBillList,
    meta: {
      title: "Danh sách hóa đơn",
    },
  },
  {
    name: "transfer-payment-bill-detail",
    path: "/hoa-don-thanh-toan-chuyen-khoan/chi-tiet/:id",
    component: TransferPaymentBillDetail,
    props: true,
    meta: {
      title: "Chi tiết hóa đơn",
    },
  },

  // Expense routes
  {
    name: "expenses",
    path: "/quan-ly-chi-phi",
    component: Expenses,
    meta: {
      title: "Quản lý chi phí",
    },
  },
  {
    name: "expense-detail",
    path: "/chi-tiet-chi-phi/:id",
    component: ExpenseDetail,
    props: true,
    meta: {
      title: "Chi tiết chi phí",
    },
  },

  // Expense Category routes
  {
    name: "expense-categories",
    path: "/quan-ly-danh-muc-chi-phi",
    component: ExpenseCategories,
    meta: {
      title: "Quản lý danh mục chi phí",
    },
  },

  // Income routes
  {
    name: "incomes",
    path: "/thu-nhap",
    component: Incomes,
    meta: {
      title: "Quản lý doanh thu",
    },
  },

  // Income Category routes
  {
    name: "income-categories",
    path: "/danh-muc-thu-nhap",
    component: IncomeCategories,
    meta: {
      title: "Quản lý danh mục doanh thu",
    },
  },

  // Bank Account routes
  {
    name: "bank-accounts",
    path: "/quan-ly-tai-khoan-ngan-hang",
    component: BankAccounts,
    meta: {
      title: "Quản lý tài khoản ngân hàng",
    },
  },
  {
    name: "bank-account-detail",
    path: "/quan-ly-tai-khoan-ngan-hang/chi-tiet/:id",
    component: BankAccountDetail,
    props: true,
    meta: {
      title: "Chi tiết tài khoản ngân hàng",
    },
  },
  {
    name: "bank-account-create",
    path: "/quan-ly-tai-khoan-ngan-hang/tao-moi",
    component: BankAccountCreateOrUpdate,
    meta: {
      title: "Tạo tài khoản ngân hàng",
    },
  },
  {
    name: "bank-account-edit",
    path: "/quan-ly-tai-khoan-ngan-hang/chinh-sua/:id",
    component: BankAccountCreateOrUpdate,
    props: true,
    meta: {
      title: "Chỉnh sửa tài khoản ngân hàng",
    },
  },
  {
    name: "bank-account-import-statement",
    path: "/quan-ly-tai-khoan-ngan-hang/import-sao-ke",
    component: BankAccountImportStatement,
    meta: {
      title: "Import sao kê ngân hàng",
    },
  },
  {
    name: "bank-account-transactions",
    path: "/quan-ly-tai-khoan-ngan-hang/giao-dich",
    component: BankAccountTransactions,
    meta: {
      title: "Giao dịch ngân hàng",
    },
  },
  {
    name: "bank-account-import-history",
    path: "/quan-ly-tai-khoan-ngan-hang/lich-su-import",
    component: BankAccountImportHistory,
    meta: {
      title: "Lịch sử import sao kê",
    },
  },
];
