/** * 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/. */ /** Angular Imports */ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; /** Routing Imports */ import { Route } from '../core/route/route.service'; /** Custom Components */ import { ChequeBookDashboardComponent } from './chequebook-dashboard/chequebook-dashboard.component'; import { ChequeSeriesComponent } from './cheque-series/cheque-series.component'; import { StockManagementComponent } from './stock-management/stock-management.component'; import { ChequeBooksComponent } from './cheque-books/cheque-books.component'; import { ChequeBookDetailComponent } from './cheque-book-detail/cheque-book-detail.component'; import { LeafLookupComponent } from './leaf-lookup/leaf-lookup.component'; /** Cheque Book Inventory Routes */ const routes: Routes = [ Route.withShell([ { path: 'chequebook', data: { title: 'Cheque Book Inventory', breadcrumb: 'Cheque Book Inventory' }, children: [ { path: '', component: ChequeBookDashboardComponent }, { path: 'series', component: ChequeSeriesComponent, data: { title: 'Cheque Series', breadcrumb: 'Cheque Series' } }, { path: 'stock', component: StockManagementComponent, data: { title: 'Cheque Stock', breadcrumb: 'Cheque Stock' } }, { path: 'books', component: ChequeBooksComponent, data: { title: 'Cheque Books', breadcrumb: 'Cheque Books' } }, { path: 'books/:id', component: ChequeBookDetailComponent, data: { title: 'Cheque Book', routeParamBreadcrumb: 'id' } }, { path: 'lookup', component: LeafLookupComponent, data: { title: 'Leaf Lookup', breadcrumb: 'Leaf Lookup' } } ] } ]) ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class ChequeBookRoutingModule {}