import { WorkListAttachComponent } from './work-list-attach/work-list-attach.component';
import { ViewNoteModalComponent } from './view-note-modal/view-note-modal.component';
import { WorkListReplacementRollComponent } from './work-list-replacement-roll/work-list-replacement-roll.component';
import { HmgCommonModule } from './../hmg-common/hmg-common.module';
import { WorkListAttachViewComponent } from './work-list-attach-view/work-list-attach-view.component';
import { HomeComponent } from './home/home.component';
import { NgModule, Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { NotificationPage } from './notification.page';
import { PipesModule } from '../pipes/pipes.module';
import { WorklistService } from './service/worklist.service';
import { WorklistMainComponent } from './worklist-main/worklist-main.component';
import { WorklistMainService } from './service/work-list.main.service';
import { WorkListRfcComponent } from './work-list-rfc/work-list-rfc.component';
import { ViewReplacementModalComponent } from './view-replacement-modal/view-replacement-modal.component';
import { WorkListActionHistoryComponent } from './work-list-action-history/work-list-action-history.component';
import { WorkListDetailsComponent } from './work-list-details/work-list-details.component';
import { WorklistAttachService } from '../absence/service/work-list-attach.service';
import { WorklistMainPRComponent } from './worklist-main-pr/worklist-main-pr.component';
import { ApplyActionModalComponent } from './apply-action-modal/apply-action-modal.component';
import { WorklistMainPoComponent } from './worklist-main-po/worklist-main-po.component';
import { ItemHistoryComponent } from './item-history/item-history.component';
import { QutationAnalysisComponent } from './qutation-analysis/qutation-analysis.component';
import { WorklistMainMRComponent } from './worklist-main-mr/worklist-main-mr.component';
// import { WorklistMainComponent } from './worklist-main/worklist-main.component';



const routes: Routes = [
  {
    path: '',
    component: NotificationPage,
    children: [
      {
        path: 'homepage',
        component: HomeComponent
      },
      {
        path: 'work-list-attach-view',
        component: WorkListAttachViewComponent
      },
      {
        path:'worklist-main',
        component:WorklistMainComponent
      },
     {
        path: 'work-list-replacement-roll',
        component: WorkListReplacementRollComponent
      },
      {
        path: 'work-list-rfc',
        component: WorkListRfcComponent
      },
      {
        path: 'view-note-modal',
        component: ViewNoteModalComponent
      },
      {
        path: 'view-replacement-modal',
        component: ViewReplacementModalComponent
      },
      {
        path: 'work-list-action-history',
        component: WorkListActionHistoryComponent
      },
      {
        path: 'work-list-attach',
        component: WorkListAttachComponent
      },
      {
        path: 'work-list-details',
        component: WorkListDetailsComponent
      },

      {
        path:'worklist-main-PR',
        component:WorklistMainPRComponent
      },
      {
      path:'apply-action-modal',
      component:ApplyActionModalComponent
    },
    {
      path:'worklist-main-PO',
      component:WorklistMainPoComponent
    },
    {
    path:'item-history-PO',
    component:ItemHistoryComponent
    },
    {
      path:'qutation-analysis-PO',
      component:QutationAnalysisComponent
    },
    {
      path:'worklist-main-MR',
      component:WorklistMainMRComponent
    }
    ]
  }
];

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    IonicModule,
    HmgCommonModule,
    PipesModule,
    RouterModule.forChild(routes)
  ],
  declarations: [
    NotificationPage,
    HomeComponent,
    WorklistMainComponent,
    WorkListReplacementRollComponent,
    WorkListRfcComponent,
    ViewNoteModalComponent,
    ApplyActionModalComponent,
    ViewReplacementModalComponent,
    WorkListActionHistoryComponent,
    WorkListAttachComponent,
    WorkListDetailsComponent,
    WorklistMainPRComponent,
    WorklistMainPoComponent,
    ItemHistoryComponent,
    QutationAnalysisComponent,
    WorklistMainMRComponent
    // WorklistMainComponent
  ],
  providers:[WorklistService,WorklistMainService, WorklistAttachService]
})
export class NotificationPageModule {}
