import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { EditContractDetailsComponents } from './edit-contract/edit-contract-details';
import { EditFlightDetailsComponent } from './edit-flight-details/edit-flight-details.component';
import { EditRateAndInventoryComponent } from './edit-rate-and-inventory/edit-rate-and-inventory.component';
import { RouterModule, Routes } from '@angular/router';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { MatDialogModule } from '@angular/material/dialog';
import { MatMenuModule } from '@angular/material/menu';
import { NgSelectModule } from '@ng-select/ng-select';
import { ButtonModule } from 'primeng/button';
import { CheckboxModule } from 'primeng/checkbox';
import { InputNumberModule } from 'primeng/inputnumber';
import { InputTextModule } from 'primeng/inputtext';
import { TableModule } from 'primeng/table';
import { ToolbarModule } from 'primeng/toolbar';
import { TreeModule } from 'primeng/tree';
import { CalendarModule } from 'primeng/calendar';
import { MessageService } from 'primeng/api';
import { ToastModule } from 'primeng/toast';
import { TooltipModule } from 'primeng/tooltip';

const routes: Routes = [
  {
    path: 'EditRateAndInventory',
    component: EditRateAndInventoryComponent,
  },
  {
    path: 'EditFlight',
    component: EditFlightDetailsComponent,
  },
  {
    path: '',
    pathMatch: 'full',
    redirectTo: 'Search',
  },
];

@NgModule({
  declarations: [
    EditFlightDetailsComponent,
    EditRateAndInventoryComponent,
    EditContractDetailsComponents
  ],
  imports: [
    CommonModule,
    CommonModule,
    ButtonModule,
    NgSelectModule,
    TreeModule,
    ToolbarModule,
    TableModule,
    MatMenuModule,
    MatButtonModule,
    CheckboxModule,
    InputTextModule,
    InputNumberModule,
    CalendarModule,
    FormsModule,
    MatDialogModule,
    // FormsModule,
    TooltipModule,
    ReactiveFormsModule,
    MatButtonModule,
    MatCheckboxModule,
    ToastModule,
    RouterModule.forChild(routes),

  ],
  providers: [MessageService],
})
export class FlightServicesManageModule { }
