import { CandidateDetailsComponent } from '../coach/candidate-details/candidate-details.component';
import { CFlandingComponent } from '../coach/cflanding/cflanding.component';
import { CoachcandidatecardComponent } from '../coach/shared/coachcandidatecard/coachcandidatecard.component';
import { CoachcandidatedashboardComponent } from '../coach/cflanding/coachcandidatedashboard/coachcandidatedashboard.component';
import { CoachComponent } from '../coach/coach.component';
import { CoachEmployeeCardComponent } from '../coach/shared/coach-employee-card/coach-employee-card.component';
import { CoachemployeedashboardComponent } from '../coach/cflanding/coachemployeedashboard/coachemployeedashboard.component';
import { CoachEmployeeDetailsComponent } from '../coach/coach-employee-details/coach-employee-details.component';
import { CoachRecommentedAssessmentComponent } from '../coach/coach-recommented-assessment/coach-recommented-assessment.component';
import { CommonModule } from '@angular/common';
import { CourseEmployecomponentComponent } from '../coach/course-employecomponent/course-employecomponent.component';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MyDateRangePickerModule } from 'mydaterangepicker';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { SharedModule } from './shared.module';

const routes: Routes = [
    {
        path: 'coach',
        component: CoachComponent,
        children: [
          {
            path: 'landing',
            component: CFlandingComponent,
            children: [
              { path: '', component: CoachcandidatedashboardComponent },
              { path: 'employee', component: CoachemployeedashboardComponent }
            ]
          },
          { path: 'candidateDetails/:id', component: CandidateDetailsComponent },
          { path: 'employeeDetails/:userId/:courseId', component: CoachEmployeeDetailsComponent },
          { path: 'employee/:id', component: CourseEmployecomponentComponent },
          { path: 'employee/recommendedAssessment/:id/:coachId', component: CoachRecommentedAssessmentComponent },
        ]
      }
];

@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        SharedModule,
        ReactiveFormsModule,
        MyDateRangePickerModule,
        RouterModule.forChild(routes)
    ],
    declarations: [
        CoachComponent,
        CFlandingComponent,
        CoachcandidatedashboardComponent,
        CoachemployeedashboardComponent,
        CandidateDetailsComponent,
        CoachEmployeeDetailsComponent,
        CoachRecommentedAssessmentComponent,
        CoachcandidatecardComponent,
        CoachEmployeeCardComponent
    ]
})
export class CoachRoutingModule { }
