import Vue from "vue";
import Router from "vue-router";

import Index from "./view/layouts/Index.vue";

import NotFoundComponent from "./components/NotFoundComponent.vue";
import noPermission from "./components/NoPermission.vue";
import PDFView from "./components/PDFView.vue";

////////////////////////////// System ///////////////////////////////
/////////////////////////////////////////////////////////////////////
//Admin
import Setting from "./view/system/admin/Setting.vue";
import Backup from "./view/system/admin/Backup.vue";
import Myprofile from "./view/system/admin/Myprofile.vue";   

// User
import User from "./view/system/user/User.vue";
import UserCreate from "./view/system/user/Create.vue";
import UserRole from "./view/system/role/UserRole.vue";
import RoleCreate from "./view/system/role/Create.vue";

import ManageGroupCO from "./view/system/GroupCO/ManageGroupCO.vue";

////////////////////////////// End System ///////////////////////////
/////////////////////////////////////////////////////////////////////

//Company
import CompanyList from "./view/company/CompanyList.vue";
//Clients
import Clients from "./view/client/Clients.vue";
import ClientsCreate from "./view/client/ClientsCreate.vue";
//Categories
import Categories from "./view/category/Categories.vue";
import CategoriesCreate from "./view/category/CategoriesCreate.vue";
//Collateral
import Collaterals from "./view/collateral/Collaterals.vue";
import CollateralsCreate from "./view/collateral/CollateralsCreate.vue";
//CO
import Co from "./view/co/Co.vue";
import CoCreate from "./view/co/CoCreate.vue";
//Branch
import Branch from "./view/branch/Branch.vue";
import BranchCreate from "./view/branch/BranchCreate.vue";
//Currency
import Currency from "./view/currency/Currency.vue";
import CurrencyCreate from "./view/currency/CurrencyCreate.vue";
//Loan
import ListofClientDisbursed from "./view/loan/ListofClientDisbursed.vue";
import ListWriteOff from "./view/loan/ListWriteOff.vue";
import LoanCreate from "./view/loan/LoanCreate.vue";
import LoanReschedule from "./view/loan/LoanReschedule.vue";
import Payment from "./view/loan/Payment.vue";
import TableSchedule from "./view/loan/TableSchedule.vue";
import ShowPayment from "./view/loan/ShowPayment.vue";

// Collection Loan
import ClientPayment   from "./view/CollectionLoan/ClientPayment.vue";
import CollectGoodLoan from "./view/CollectionLoan/CollectGoodLoan.vue";
import CollectLateLoan from "./view/CollectionLoan/CollectLateLoan.vue"; 
import CollectWriteOffLoan from "./view/CollectionLoan/CollectWriteOffLoan.vue";

import PaymentList from "./view/ClientPayment/PaymentList.vue";
import CoReceived from "./view/ClientPayment/CoReceived.vue";
import CashierReceived from "./view/ClientPayment/CashierReceived.vue";
import CoReport from "./view/report/CoReport.vue";
import LoanDisbursementReport from "./view/report/LoanDisbursementReport.vue";
import DailyReport from "./view/report/DailyReport.vue";
import SavingReport from "./view/report/SavingReport.vue";
import CollectionReport from "./view/report/CollectionReport.vue";
import CollectedReport from "./view/report/CollectedReport.vue";
import CompletedReport from "./view/report/CompletedReport.vue";

// LoanWriteOffReport
import LoanWriteOffReport from "./view/report/LoanWriteOffReport.vue";
import LoanLossProClassific from "./view/report/LoanLossProClassific.vue";
import SummaryLoanLossProvision from "./view/report/SummaryLoanLossProvision.vue";

import BorrowedReport from "./view/report/BorrowedReport.vue";
import LoanApprovalRejectedReport from "./view/report/LoanApprovalRejectedReport.vue";
import LateReport from "./view/report/LateReport.vue";
import ListRequest from "./view/report/ListRequest.vue";
import ListRequestBM from "./view/report/ListRequestBM.vue";
import ListofLoanDisbursement from "./view/report/ListofLoanDisbursement.vue";
import GetClosingReport from "./view/ClientPayment/GetClosingReport.vue";
import EditClosingReport from "./view/ClientPayment/GetClosingReport.vue";
import SummaryCoReport from "./view/report/SummaryCoReport.vue";
import SummaryProductivityByBranch from "./view/report/SummaryProductivityByBranch.vue";
import GetLogactivity from "./view/logactivity/GetLogactivity.vue";
import Holiday from "./view/holiday/Holiday.vue";
import HolidayCreate from "./view/holiday/HolidayCreate.vue";
import HistoryPayment from "./view/loan/HistoryPayment.vue";
import CollateralList from "./view/collateral/CollateralList.vue";
import ContractDay from "./view/contracts/ContractDay.vue";
import ContractWeek from "./view/contracts/ContractWeek.vue";
import ContractMonth from "./view/contracts/ContractMonth.vue";
import permissionTest from "./view/client/permissionTest.vue";
import CollateralDetailCreate from "./view/collateral/CollateralDetailCreate.vue";
import CollateralListReport from "./view/collateral/CollateralListReport.vue";
import LoanNotClosingReport from "./view/report/not-closing-report/LoanNotClosingReport.vue";
import PaymentNotClosingReport from "./view/report/not-closing-report/PaymentNotClosingReport.vue";
import SumTotalClientPayment from "./view/report/SumTotalClientPayment.vue";
import RejectLoanReport from "./view/report/RejectLoanReport.vue";

import OverdueReport from "./view/loan/OverdueReport.vue";
////////////////////////////// END Inventory //////////////////////////
/////////////////////////////////////////////////////////////////////

// dashboard
import Dashboard from "./view/dashboards/Dashboard.vue";

////////////////////////////// Account ///////////////////////////////////
//////////////////////////////////////////////////////////////////////////
import TypeOfAccountList from "./view/accounting/type-account/TypeOfAccountList.vue";
import ChartOfAccountList from "./view/accounting/chart-accounts/ChartOfAccountList.vue";

////////////////////////////// Accountant ///////////////////////////////
////////////////////////////////////////////////////////////////////////
import AssetList from "./view/accounting/assets/AssetList.vue";
import DepreciationList from "./view/accounting/depreciations/DepreciationList.vue";
import DepreciationPaymentReport from "./view/accounting/depreciations/DepreciationPaymentReport.vue";
import PrintSchedule from "./view/accounting/depreciations/PrintSchedule.vue";
import SummaryAssetDepreciationReport from "./view/accounting/depreciations/SummaryAssetDepreciationReport.vue";
import MonthlyDepreciation from "./view/accounting/depreciations/MonthlyDepreciation.vue";
// import AccountPayable from './view/accounting/account-payable/AccountPayable.vue';
import JournalList from "./view/accounting/journals/JournalList.vue";
import CashTransferRequestList from "./view/accounting/cash-request-transfer/CashTransferRequestList.vue";

import DailyBanknoteManagementReport from "./view/accounting/daily-banknote/DailyBanknoteManagementReport.vue";
import BanknoteManagementList from "./view/accounting/daily-banknote/BanknoteManagementList.vue";

////////////////////////////// Financial Report ///////////////////////////////
//////////////////////////////////////////////////////////////////////////////
import JournalReport from "./view/accounting/financial-reports/JournalReport.vue";
import CashFlow from "./view/accounting/financial-reports/CashFlow.vue";
import BalanceSheet from "./view/accounting/financial-reports/BalanceSheet.vue";
import NetProfitAndLoss from "./view/accounting/financial-reports/NetProfitAndLoss.vue";
import GeneralLedger from "./view/accounting/financial-reports/GeneralLedger.vue";
import TrialBalance from "./view/accounting/financial-reports/TrialBalance.vue";
import ExpenseList from "./view/accounting/expenses/ExpenseList.vue";
import ExpenseReport from "./view/accounting/expenses/ExpenseReport.vue";
import IncomeList from "./view/accounting/incomes/IncomeList.vue";
import IncomeReport from "./view/accounting/incomes/IncomeReport.vue";
import IncomeStatementMonth from "./view/accounting/incomes/IncomeStatementMonth.vue";
import ProfitAndLossStatementByMonth from "./view/accounting/financial-reports/ProfitAndLossStatementByMonth.vue";

Vue.use(Router);

export const router = new Router({
    routes: [
        {
            path: "/",
            name: "Dashboard",
            component: Dashboard,
            meta: { title: "Dashboard" },
        },
        // { path: '/*', component: NotFoundComponent, meta: { title: 'Not Found' } },
        // { path: '/no-permission', name: 'noPermission', component: noPermission, meta: { title: 'No Permission' } },
        {
            path: "/system",
            component: Index,
            children: [
                ////////////////////////////// System ///////////////////////////////
                /////////////////////////////////////////////////////////////////////
                // {
                //     path: "/",
                //     name: "Dashboard",
                //     component: Dashboard,
                //     meta: { title: "Dashboard" },
                // },
                {
                    path: "setting",
                    name: "Setting",
                    component: Setting,
                    meta: { title: "Setting" },
                },
                { path: "backup", name: "Backup", component: Backup },
                {
                    path: "my-profile",
                    name: "Myprofile",
                    component: Myprofile,
                    meta: { title: "Myprofile" },
                },
                {
                    path: "user-role",
                    name: "UserRole",
                    component: UserRole,
                    meta: { title: "User Role" },
                },
                {
                    path: "role-create/:id?",
                    name: "RoleCreate",
                    component: RoleCreate,
                    meta: { title: "User Role" },
                },
                {
                    path: "user",
                    name: "User",
                    component: User,
                    meta: { title: "User" },
                },
                {
                    path: "user-create/:id?",
                    name: "UserCreate",
                    component: UserCreate,
                    props: true,
                    meta: { title: "UserCreate" },
                },
                {
                    path: "company",
                    name: "CompanyList",
                    component: CompanyList,
                    meta: { title: "CompanyList" },
                },
                // Manage Group CO
                {
                    path: "manage-group-co",
                    name: "ManageGroupCO",
                    component: ManageGroupCO,
                    meta: { title: "Manage Group CO" },
                },

                ////////////////////////////// End System ///////////////////////////
                /////////////////////////////////////////////////////////////////////

                {
                    path: "pdf-view/:file?",
                    name: "PDFView",
                    component: PDFView,
                    props: true,
                    meta: { title: "PDFView" },
                    props: true,
                },
                {
                    path: "clients",
                    name: "Clients",
                    component: Clients,
                    meta: { title: "Clients" },
                },
                {
                    path: "clients-create/:id?",
                    name: "ClientsCreate",
                    component: ClientsCreate,
                    props: true,
                    meta: { title: "ClientsCreate" },
                },
                {
                    path: "categories",
                    name: "Categories",
                    component: Categories,
                    meta: { title: "Categories" },
                },
                {
                    path: "categories-create/:id?",
                    name: "CategoriesCreate",
                    component: CategoriesCreate,
                    props: true,
                    meta: { title: "CategoriesCreate" },
                },
                {
                    path: "collaterals",
                    name: "Collaterals",
                    component: Collaterals,
                    meta: { title: "Collaterals" },
                },
                {
                    path: "collaterals-create/:id?",
                    name: "CollateralsCreate",
                    component: CollateralsCreate,
                    props: true,
                    meta: { title: "CollateralsCreate" },
                },
                {
                    path: "co",
                    name: "Co",
                    component: Co,
                    meta: { title: "Co" },
                },
                {
                    path: "co-create/:id?",
                    name: "CoCreate",
                    component: CoCreate,
                    props: true,
                    meta: { title: "CoCreate" },
                },
                {
                    path: "branch",
                    name: "Branch",
                    component: Branch,
                    meta: { title: "Branch" },
                },
                {
                    path: "branch-create/:id?",
                    name: "BranchCreate",
                    component: BranchCreate,
                    props: true,
                    meta: { title: "BranchCreate" },
                },
                {
                    path: "currency",
                    name: "Currency",
                    component: Currency,
                    meta: { title: "Currency" },
                },
                {
                    path: "currency-create/:id?",
                    name: "CurrencyCreate",
                    component: CurrencyCreate,
                    props: true,
                    meta: { title: "CurrencyCreate" },
                },
                {
                    path: "list-of-client-disbursed",
                    name: "ListofClientDisbursed",
                    component: ListofClientDisbursed,
                    meta: { title: "ListofClientDisbursed" },
                },
                {
                    path: "list-write-off",
                    name: "ListWriteOff",
                    component: ListWriteOff,
                    meta: { title: "ListWriteOff" },
                },
                {
                    path: "loan-create/:id?",
                    name: "LoanCreate",
                    component: LoanCreate,
                    props: true,
                    meta: { title: "LoanCreate" },
                },
                {
                    path: "loan-reschedule/:id?",
                    name: "LoanReschedule",
                    component: LoanReschedule,
                    props: true,
                    meta: { title: "LoanReschedule" },
                },

                {
                    path: "loan-payment/:id?",
                    name: "Payment",
                    component: Payment,
                    props: true,
                    meta: { title: "Payment" },
                },

                {
                    path: "table-schedule/:id?",
                    name: "TableSchedule",
                    component: TableSchedule,
                    props: true,
                    meta: { title: "TableSchedule" },
                },
                {
                    path: "show-payment",
                    name: "ShowPayment",
                    component: ShowPayment,
                    meta: { title: "Show Payment" },
                },
                {
                    path: "payment-list",
                    name: "PaymentList",
                    component: PaymentList,
                    meta: { title: "PaymentList" },
                },

                // Collection Loan
                {
                    path: "client-payment",
                    name: "ClientPayment",
                    component: ClientPayment,
                    meta: { title: "Client Payment" },
                },
                {
                    path: "loan-collection",
                    name: "CollectGoodLoan",
                    component: CollectGoodLoan,
                    meta: { title: "Collect Good Loan" },
                },
                {
                    path: "collect-late-loan",
                    name: "CollectLateLoan",
                    component: CollectLateLoan,
                    meta: { title: "Collect Late Loan" },
                },
                {
                    path: "collect-write-off-loan",
                    name: "CollectWriteOffLoan",
                    component: CollectWriteOffLoan,
                    meta: { title: "Collect Write Off Loan" },
                },

                {
                    path: "co-received",
                    name: "CoReceived",
                    component: CoReceived,
                    props: true,
                    meta: { title: "CoReceived" },
                },
                {
                    path: "cashier-received",
                    name: "CashierReceived",
                    component: CashierReceived,
                    props: true,
                    meta: { title: "CashierReceived" },
                },
                {
                    path: "co-report",
                    name: "CoReport",
                    component: CoReport,
                    props: true,
                    meta: { title: "CoReport" },
                },
                {
                    path: "loan-disbursement-report",
                    name: "LoanDisbursementReport",
                    component: LoanDisbursementReport,
                    props: true,
                    meta: { title: "Loan Disbursement Report" },
                },
                {
                    path: "daily-report",
                    name: "DailyReport",
                    component: DailyReport,
                    props: true,
                    meta: { title: "DailyReport" },
                },
                {
                    path: "saving-report",
                    name: "SavingReport",
                    component: SavingReport,
                    props: true,
                    meta: { title: "SavingReport" },
                },
                {
                    path: "collection-report",
                    name: "CollectionReport",
                    component: CollectionReport,
                    props: true,
                    meta: { title: "CollectionReport" },
                },
                {
                    path: "collected-report",
                    name: "CollectedReport",
                    component: CollectedReport,
                    props: true,
                    meta: { title: "CollectedReport" },
                },
                {
                    path: "completed-report",
                    name: "CompletedReport",
                    component: CompletedReport,
                    props: true,
                    meta: { title: "CompletedReport" },
                },
                {
                    path: "write-off-report",
                    name: "LoanWriteOffReport",
                    component: LoanWriteOffReport,
                    props: true,
                    meta: { title: "LoanWriteOffReport" },
                },
                {
                    path: "borrowed-report",
                    name: "BorrowedReport",
                    component: BorrowedReport,
                    props: true,
                    meta: { title: "BorrowedReport" },
                },
                {
                    path: "loan-approval-rejected-report",
                    name: "LoanApprovalRejectedReport",
                    component: LoanApprovalRejectedReport,
                    props: true,
                    meta: { title: "Loan Approval/Rejected Report" },
                },
                {
                    path: "late-report",
                    name: "LateReport",
                    component: LateReport,
                    props: true,
                    meta: { title: "LateReport" },
                },
                {
                    path: "list-request-co",
                    name: "ListRequest",
                    component: ListRequest,
                    props: true,
                    meta: { title: "List Request" },
                },
                {
                    path: "list-request-bm",
                    name: "ListRequestBM",
                    component: ListRequestBM,
                    props: true,
                    meta: { title: "List Request BM" },
                },
                {
                    path: "list-of-loan-disbursement",
                    name: "ListofLoanDisbursement",
                    component: ListofLoanDisbursement,
                    props: true,
                    meta: { title: "ListofLoanDisbursement" },
                },
                {
                    path: "closing-report",
                    name: "GetClosingReport",
                    component: GetClosingReport,
                    props: true,
                    meta: { title: "GetClosingReport" },
                },
                {
                    path: "edit-closing-report/:isEdit?",
                    name: "EditClosingReport",
                    component: EditClosingReport,
                    props: true,
                    meta: { title: "EditClosingReport" },
                },

                {
                    path: "summary-co-report",
                    name: "SummaryCoReport",
                    component: SummaryCoReport,
                    props: true,
                    meta: { title: "SummaryCoReport" },
                },

                {
                    path: "summary-productivity-by-branch",
                    name: "SummaryProductivityByBranch",
                    component: SummaryProductivityByBranch,
                    props: true,
                    meta: { title: "Summary Productivity By Branch" },
                },
                {
                    path: "get-logactivity",
                    name: "GetLogactivity",
                    component: GetLogactivity,
                    props: true,
                    meta: { title: "GetLogactivity" },
                },
                {
                    path: "holiday",
                    name: "Holiday",
                    component: Holiday,
                    props: true,
                    meta: { title: "Holiday" },
                },
                {
                    path: "holiday-create",
                    name: "HolidayCreate",
                    component: HolidayCreate,
                    props: true,
                    meta: { title: "HolidayCreate" },
                },
                {
                    path: "history-payment/:id?",
                    name: "HistoryPayment",
                    component: HistoryPayment,
                    props: true,
                    meta: { title: "HistoryPayment" },
                },
                {
                    path: "collateral-list",
                    name: "CollateralList",
                    component: CollateralList,
                    props: true,
                    meta: { title: "CollateralList" },
                },
                {
                    path: "overdue-report",
                    name: "OverdueReport",
                    component: OverdueReport,
                    props: true,
                    meta: { title: "OverdueReport" },
                },
                {
                    path: "loan-loss-provision-classification-report",
                    name: "LoanLossProClassific",
                    component: LoanLossProClassific,
                    props: true,
                    meta: { title: "LoanLossProClassific" },
                },
                {
                    path: "summary-loan-loss-provision-report",
                    name: "SummaryLoanLossProvision",
                    component: SummaryLoanLossProvision,
                    props: true,
                    meta: { title: "SummaryLoanLossProvision" },
                },

                {
                    path: "contract-day",
                    name: "ContractDay",
                    component: ContractDay,
                    props: true,
                    meta: { title: "ContractDay" },
                },
                {
                    path: "contract-week",
                    name: "ContractWeek",
                    component: ContractWeek,
                    props: true,
                    meta: { title: "ContractWeek" },
                },
                {
                    path: "contract-month",
                    name: "ContractMonth",
                    component: ContractMonth,
                    props: true,
                    meta: { title: "ContractMonth" },
                },
                {
                    path: "permissions",
                    name: "permissionTest",
                    component: permissionTest,
                    meta: { title: "permissionTest" },
                },
                {
                    path: "collateral-detail-create/:id?",
                    name: "CollateralDetailCreate",
                    component: CollateralDetailCreate,
                    props: true,
                    meta: { title: "CollateralDetailCreate" },
                },
                {
                    path: "collateral-report",
                    name: "CollateralListReport",
                    component: CollateralListReport,
                    props: true,
                    meta: { title: "CollateralListReport" },
                },
                {
                    path: "loan-not-closing-report",
                    name: "LoanNotClosingReport",
                    component: LoanNotClosingReport,
                    props: true,
                    meta: { title: "LoanNotClosingReport" },
                },
                {
                    path: "payment-not-closing-report",
                    name: "PaymentNotClosingReport",
                    component: PaymentNotClosingReport,
                    props: true,
                    meta: { title: "PaymentNotClosingReport" },
                },
                {
                    path: "sum-total-client-payment",
                    name: "SumTotalClientPayment",
                    component: SumTotalClientPayment,
                    props: true,
                    meta: { title: "SumTotalClientPayment" },
                },
                {
                    path: "reject-loan-report",
                    name: "RejectLoanReport",
                    component: RejectLoanReport,
                    props: true,
                    meta: { title: "RejectLoanReport" },
                },
                {
                    path: "daily-banknote",
                    name: "DailyBanknoteManagementReport",
                    component: DailyBanknoteManagementReport,
                    meta: { title: "DailyBanknoteManagementReport" },
                },
                {
                    path: "banknote-management-list",
                    name: "BanknoteManagementList",
                    component: BanknoteManagementList,
                    meta: { title: "BanknoteManagementList" },
                },
            ],
        },
        ////////////////////////////// Account ///////////////////////////////
        /////////////////////////////////////////////////////////////////////
        {
            path: "/accounting",
            component: Index,
            children: [
                ////////////////////////////// Accounting ///////////////////////////////
                ////////////////////////////////////////////////////////////////////////
                {
                    path: "type-of-account",
                    name: "TypeOfAccountList",
                    component: TypeOfAccountList,
                    meta: { title: "TypeOfAccountList" },
                },
                {
                    path: "chart-of-account",
                    name: "ChartOfAccountList",
                    component: ChartOfAccountList,
                    meta: { title: "ChartOfAccountList" },
                },

                ////////////////////////////// Accountant ///////////////////////////////
                ////////////////////////////////////////////////////////////////////////
                {
                    path: "assets",
                    name: "AssetList",
                    component: AssetList,
                    meta: { title: "AssetList" },
                },
                {
                    path: "depreciation",
                    name: "DepreciationList",
                    component: DepreciationList,
                    meta: { title: "DepreciationList" },
                },
                {
                    path: "depreciation-payment-report",
                    name: "DepreciationPaymentReport",
                    component: DepreciationPaymentReport,
                    meta: { title: "DepreciationPaymentReport" },
                },
                {
                    path: "summary-asset-depreciation-report",
                    name: "SummaryAssetDepreciationReport",
                    component: SummaryAssetDepreciationReport,
                    meta: { title: "Summary Asset Depreciation Report" },
                },
                {
                    path: "print-schedule/:id?",
                    name: "PrintSchedule",
                    component: PrintSchedule,
                    props: true,
                    meta: { title: "Print Schedule" },
                },
                {
                    path: "monthly-depreciation",
                    name: "MonthlyDepreciation",
                    component: MonthlyDepreciation,
                    meta: { title: "MonthlyDepreciation" },
                },
                // { path: 'account-payable', name: 'AccountPayable', component: AccountPayable, meta: { title: 'AccountPayable' } },
                {
                    path: "journals",
                    name: "JournalList",
                    component: JournalList,
                    meta: { title: "JournalList" },
                },
                {
                    path: "cash-transfer-request-list",
                    name: "CashTransferRequestList",
                    component: CashTransferRequestList,
                    meta: { title: "Cash Transfer Request List" },
                },

                ////////////////////////////// Financial Report ///////////////////////////////
                //////////////////////////////////////////////////////////////////////////////
                {
                    path: "journals-report",
                    name: "JournalReport",
                    component: JournalReport,
                    meta: { title: "JournalReport" },
                },
                {
                    path: "cash-flow",
                    name: "CashFlow",
                    component: CashFlow,
                    meta: { title: "CashFlow" },
                },
                {
                    path: "balance-sheet",
                    name: "BalanceSheet",
                    component: BalanceSheet,
                    meta: { title: "BalanceSheet" },
                },
                {
                    path: "net-profit-and-loss",
                    name: "NetProfitAndLoss",
                    component: NetProfitAndLoss,
                    meta: { title: "NetProfitAndLoss" },
                },
                {
                    path: "general-ledger",
                    name: "GeneralLedger",
                    component: GeneralLedger,
                    meta: { title: "GeneralLedger" },
                },
                {
                    path: "trial-balance",
                    name: "TrialBalance",
                    component: TrialBalance,
                    meta: { title: "TrialBalance" },
                },

                {
                    path: "expense-list",
                    name: "ExpenseList",
                    component: ExpenseList,
                    props: true,
                    meta: { title: "ExpenseList" },
                },
                {
                    path: "expense-report",
                    name: "ExpenseReport",
                    component: ExpenseReport,
                    props: true,
                    meta: { title: "ExpenseReport" },
                },
                {
                    path: "income-list",
                    name: "IncomeList",
                    component: IncomeList,
                    props: true,
                    meta: { title: "IncomeList" },
                },
                {
                    path: "income-report",
                    name: "IncomeReport",
                    component: IncomeReport,
                    props: true,
                    meta: { title: "IncomeReport" },
                },
                {
                    path: "income-statement-month",
                    name: "IncomeStatementMonth",
                    component: IncomeStatementMonth,
                    props: true,
                    meta: { title: "IncomeStatementMonth" },
                },
                {
                    path: "profit-&-loss-statement-by-month",
                    name: "ProfitAndLossStatementByMonth",
                    component: ProfitAndLossStatementByMonth,
                    meta: { title: "Profit And Loss Statement By Month" },
                },
            ],
        },
        ////////////////////////////// END Account ///////////////////////////////
        /////////////////////////////////////////////////////////////////////
    ],
});
router.afterEach((to, from) => {
    Vue.nextTick(() => {
        document.title = to.meta.title ? to.meta.title : "Loan System";
    });
});
