import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

const routes: Routes = [
  {
    path: 'add-credit',
    loadChildren: () => import('./add-credit/add-credit.module').then(mod => mod.AddCreditModule),
  },
  {
    path: 'invoices',
    loadChildren: () => import('./invoices/invoices.module').then(mod => mod.InvoicesModule),
  },
  {
    path: 'cart',
    loadChildren: () => import('./cart/cart.module').then(mod => mod.CartModule),
  },
  {
    path: 'order',
    loadChildren: () => import('./order/order.module').then(mod => mod.OrderModule),
  },
  {
    path: 'services',
    loadChildren: () => import('./services/services.module').then(mod => mod.ServicesModule),
  },
  {
    path: 'billing-history',
    loadChildren: () => import('./history/history.module').then(mod => mod.HistoryModule),
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class BillingRoutingModule {
}
