/** * Copyright since 2025 Mifos Initiative * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { Route } from '../core/route/route.service'; import { LoanPipelineComponent } from './loan-pipeline/loan-pipeline.component'; import { ApplicationDetailComponent } from './application-detail/application-detail.component'; import { LoanEligibilityChecklistComponent } from './loan-eligibility-checklist/loan-eligibility-checklist.component'; import { RbiRulesReferenceComponent } from './rbi-rules-reference/rbi-rules-reference.component'; const routes: Routes = [ Route.withShell([ { path: 'loan-origination', data: { title: 'Loan Origination', breadcrumb: 'Loan Origination' }, children: [ { path: '', redirectTo: 'pipeline', pathMatch: 'full' }, { path: 'pipeline', component: LoanPipelineComponent, data: { title: 'Loan Origination Pipeline', breadcrumb: 'Pipeline' } }, { path: 'application/:applicationNo', component: ApplicationDetailComponent, data: { title: 'Loan Application', breadcrumb: 'Application' } }, { path: 'eligibility-checklist', component: LoanEligibilityChecklistComponent, data: { title: 'RBI Eligibility Checklist', breadcrumb: 'RBI Eligibility Checklist' } }, { path: 'rbi-rules-reference', component: RbiRulesReferenceComponent, data: { title: 'RBI Compliance Rules', breadcrumb: 'RBI Rules Reference' } } ] } ]) ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class LoanOriginationRoutingModule {}