import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LayoutComponent } from './components/layout/layout.component';
import { NodatafoundComponent } from './components/nodatafound/nodatafound.component';

const routes: Routes = [
    {
        path: '',
        component: LayoutComponent,
        children: [
            {
                path: '',
                loadChildren: () => import('./components/index/index.module').then(m => m.IndexModule),
            },
            {
                path: 'home',
                loadChildren: () => import('./components/index/index.module').then(m => m.IndexModule),
            },
            {
                path: 'home/:city',
                loadChildren: () => import('./components/index/index.module').then(m => m.IndexModule),
            },
            {
                path: 'personal-loan/:city',
                loadChildren: () => import('./components/personal-loan/personal-loan.module').then(m => m.PersonalLoanModule),
            },
            {
                path: 'business-loan/:city',
                loadChildren: () => import('./components/business-loan/business-loan.module').then(m => m.BusinessLoanModule),
            },
            {
                path: 'home-loan/:city',
                loadChildren: () => import('./components/home-loan/home-loan.module').then(m => m.HomeLoanModule),
            },
            {
                path: 'instant-loan/:city',
                loadChildren: () => import('./components/instant-loan/instant-loan.module').then(m => m.InstantLoanModule),
            },
            {
                path: 'mortgage-loan/:city',
                loadChildren: () => import('./components/mortgage-loan/mortgage-loan.module').then(m => m.MortgageLoanModule),
            },
            {
                path: 'credit-card/:city',
                loadChildren: () => import('./components/credit-card/credit-card.module').then(m => m.CreditCardModule),
            },
            {
                path: 'car-loan/:city',
                loadChildren: () => import('./components/car-loan/car-loan.module').then(m => m.CarLoanModule),
            },
            {
                path: 'gold-loan/:city',
                loadChildren: () => import('./components/gold-loan/gold-loan.module').then(m => m.GoldLoanModule),
            },
            {
                path: 'education-loan/:city',
                loadChildren: () => import('./components/education-loan/education-loan.module').then(m => m.EducationLoanModule),
            },
            {
                path: 'professional-loan/:city',
                loadChildren: () => import('./components/professional-loan/professional-loan.module').then(m => m.ProfessionalLoanModule),
            },
            {
                path: 'startup-loan/:city',
                loadChildren: () => import('./components/startup-loan/startup-loan.module').then(m => m.StartupLoanModule),
            },
            {
                path: 'msme-loan/:city',
                loadChildren: () => import('./components/msme-loan/msme-loan.module').then(m => m.MsmeLoanModule),
            },
            {
                path: 'personal-loan',
                loadChildren: () => import('./components/personal-loan/personal-loan.module').then(m => m.PersonalLoanModule),
            },
            {
                path: 'business-loan',
                loadChildren: () => import('./components/business-loan/business-loan.module').then(m => m.BusinessLoanModule),
            },
            {
                path: 'home-loan',
                loadChildren: () => import('./components/home-loan/home-loan.module').then(m => m.HomeLoanModule),
            },
            {
                path: 'instant-loan',
                loadChildren: () => import('./components/instant-loan/instant-loan.module').then(m => m.InstantLoanModule),
            },
            {
                path: 'mortgage-loan',
                loadChildren: () => import('./components/mortgage-loan/mortgage-loan.module').then(m => m.MortgageLoanModule),
            },
            {
                path: 'credit-card',
                loadChildren: () => import('./components/credit-card/credit-card.module').then(m => m.CreditCardModule),
            },
            {
                path: 'car-loan',
                loadChildren: () => import('./components/car-loan/car-loan.module').then(m => m.CarLoanModule),
            },
            {
                path: 'gold-loan',
                loadChildren: () => import('./components/gold-loan/gold-loan.module').then(m => m.GoldLoanModule),
            },
            {
                path: 'education-loan',
                loadChildren: () => import('./components/education-loan/education-loan.module').then(m => m.EducationLoanModule),
            },
            {
                path: 'professional-loan',
                loadChildren: () => import('./components/professional-loan/professional-loan.module').then(m => m.ProfessionalLoanModule),
            },
            {
                path: 'startup-loan',
                loadChildren: () => import('./components/startup-loan/startup-loan.module').then(m => m.StartupLoanModule),
            },
            {
                path: 'msme-loan',
                loadChildren: () => import('./components/msme-loan/msme-loan.module').then(m => m.MsmeLoanModule),
            },
            {
                path: 'emi-calculator',
                loadChildren: () => import('./components/emi-calculator/emi-calculator.module').then(m => m.EmiCalculatorModule),
            },
            {
                path: 'dsaSignup',
                loadChildren: () => import('./components/dsa-signup/dsa-signup.module').then(m => m.DsaSignUpModule),
            },
            {
                path: 'contact',
                loadChildren: () => import('./components/contact/contact.module').then(m => m.ContactModule),
            },
            // {
            //   path: 'about',
            //   loadChildren: () => import('./components/about/about.module').then(m => m.AboutModule),
            // },
            {
                path: 'goldLoanApply',
                loadChildren: () => import('./components/gold-loan-apply/gold-loan-apply.module').then(m => m.GoldLoanApplyModule),
            },
            {
                path: 'car-loan-apply',
                loadChildren: () => import('./components/car-loan-apply/car-loan-apply.module').then(m => m.CarLoanApplyModule),
            },
            // {
            //   path: 'blog',
            //   loadChildren: () => import('./components/blog/blog.module').then(m => m.BlogModule),
            // },
            // {
            //   path: 'blog-detail',
            //   loadChildren: () => import('./components/blog-details/blog-details.module').then(m => m.BlogDetailModule),
            // },
            {
                path: 'financial-advice',
                loadChildren: () => import('./components/financial-advice/financial-advice.module').then(m => m.FinancialAdviceModule),
            },
            {
                path: 'our-services',
                loadChildren: () => import('./components/our-services/our-services.module').then(m => m.OurServicesModule),
            },
            {
                path: 'planning-strategies',
                loadChildren: () => import('./components/planning-strategies/planning-strategies.module').then(m => m.PlanningStrategiesModule),
            },
            {
                path: 'investment-trending',
                loadChildren: () => import('./components/investment-trending/investment-trending.module').then(m => m.InvestmentTrendingModule),
            },
            {
                path: 'terms-conditions',
                loadChildren: () => import('./components/terms-conditions/terms-conditions.module').then(m => m.TermsConditionsModule),
            },
            {
                path: 'faq',
                loadChildren: () => import('./components/faq/faq.module').then(m => m.FaqModule),
            },
            {
                path: 'privacy-policy',
                loadChildren: () => import('./components/privacy-policy/privacy-policy.module').then(m => m.PrivacyPolicyModule),
            },
            {
                path: 'compare',
                loadChildren: () => import('./components/compare/compare.module').then(m => m.CompareModule),
            },
            {
                path: 'refer-customer/:token',
                loadChildren: () => import('./components/refer-customer/refer-customer.module').then(m => m.ReferCustomerModule),
            },
            {
                path: 'refer-partner/:role/:code/:roleId',
                loadChildren: () => import('./components/refer-partner/refer-partner.module').then(m => m.ReferPartnerModule),
            },
            {
                path: 'refer-partner/:role/:code',
                loadChildren: () => import('./components/refer-partner/refer-partner.module').then(m => m.ReferPartnerModule),
            },
            {
                path: 'educationLoanApply',
                loadChildren: () => import('./components/education-loan-apply/education-loan-apply.module').then(m => m.EducationLoanApplyModule),
            },
            {
                path: 'startupLoanApply',
                loadChildren: () => import('./components/startup-loan-apply/startup-loan-apply.module').then(m => m.StartupLoanApplyModule),
            },

            //Bank Wise Personal Loan
            {
                path: 'personal-loan/bank/alahabad-bank',
                loadChildren: () => import('./components/personal-loan/banks/alahabad-bank/alahabad-bank.module').then(m => m.AlahabadBankModule),
            },
            {
                path: 'personal-loan/bank/andhra-bank',
                loadChildren: () => import('./components/personal-loan/banks/andhra-bank/andhra-bank.module').then(m => m.AndhraBankModule),
            },
            {
                path: 'personal-loan/bank/axis-bank',
                loadChildren: () => import('./components/personal-loan/banks/axis-bank/axis-bank.module').then(m => m.AxisBankModule),
            },
            {
                path: 'personal-loan/bank/bank-of-india',
                loadChildren: () => import('./components/personal-loan/banks/bank-of-india/bank-of-india.module').then(m => m.BankOfIndiaModule),
            },
            {
                path: 'personal-loan/bank/bank-of-maharashtra',
                loadChildren: () => import('./components/personal-loan/banks/bank-of-maharashtra/bank-of-maharashtra.module').then(m => m.BankOfMaharashtraModule),
            },
            {
                path: 'personal-loan/bank/cashe',
                loadChildren: () => import('./components/personal-loan/banks/cashe/cashe.module').then(m => m.CasheModule),
            },
            {
                path: 'personal-loan/bank/fullerton-india',
                loadChildren: () => import('./components/personal-loan/banks/fullerton-india/fullerton-india.module').then(m => m.FullertonIndiaModule),
            },
            {
                path: 'personal-loan/bank/hdfc',
                loadChildren: () => import('./components/personal-loan/banks/hdfc/hdfc.module').then(m => m.HDFCModule),
            },
            {
                path: 'personal-loan/bank/hsbc',
                loadChildren: () => import('./components/personal-loan/banks/hsbc/hsbc.module').then(m => m.HSBCModule),
            },
            {
                path: 'personal-loan/bank/icici',
                loadChildren: () => import('./components/personal-loan/banks/icici/icici.module').then(m => m.ICICIModule),
            },
            {
                path: 'personal-loan/bank/idfc',
                loadChildren: () => import('./components/personal-loan/banks/idfc/idfc.module').then(m => m.IDFCModule),
            },
            {
                path: 'personal-loan/bank/corporation-bank',
                loadChildren: () => import('./components/personal-loan/banks/corporation-bank/corporation-bank.module').then(m => m.CorporationBankModule),
            },
            {
                path: 'personal-loan/bank/kredit-bee',
                loadChildren: () => import('./components/personal-loan/banks/kredit-bee/kredit-bee.module').then(m => m.KreditBeeModule),
            },
            {
                path: 'personal-loan/bank/money-tap',
                loadChildren: () => import('./components/personal-loan/banks/money-tap/money-tap.module').then(m => m.MoneyTapModule),
            },
            {
                path: 'personal-loan/bank/muthoot-finance',
                loadChildren: () => import('./components/personal-loan/banks/muthoot-finance/muthoot-finance.module').then(m => m.MuthootFinanceModule),
            },
            {
                path: 'personal-loan/bank/rbl',
                loadChildren: () => import('./components/personal-loan/banks/rbl/rbl.module').then(m => m.RBLModule),
            },
            {
                path: 'personal-loan/bank/sbi',
                loadChildren: () => import('./components/personal-loan/banks/sbi/sbi.module').then(m => m.SBIModule),
            },
            {
                path: 'personal-loan/bank/uco',
                loadChildren: () => import('./components/personal-loan/banks/uco/uco.module').then(m => m.UCOModule),
            },

            { path: '**', component: NodatafoundComponent },
        ]
    }
];
@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class WebsiteRoutingModule { }