import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { HotelComponent } from './hotel.component';
import { HotelAddComponent } from './hotel-add/hotel-add.component';
import { HotelSearchComponent } from './hotel-search/hotel-search.component';
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { MatMenuModule } from '@angular/material/menu';
import { NgSelectModule } from '@ng-select/ng-select';
import { CalendarModule } from 'angular-calendar';
import { DialogModule } from 'primeng/dialog';
import { InputTextModule } from 'primeng/inputtext';
import { TableModule } from 'primeng/table';
import { ToastModule } from 'primeng/toast';
import { ToolbarModule } from 'primeng/toolbar';
import { ButtonModule } from 'primeng/button';
import { ManageHotelService } from 'src/app/core/services/HotelServices/manage-hotel.service';
import { FileUploadModule } from 'primeng/fileupload';


const routes: Routes = [
  {
    path: 'HotelSearch',
    component:HotelSearchComponent,
  },
  {
    path: 'HotelAdd',
    component:HotelAddComponent,
  },
  {
    path: '',
    component:HotelComponent,
  },
  {
    path: 'HotelManage',
    loadChildren: () =>
      import('./hotel-manage/hotel-manage.module').then(
        (m) => m.HotelManageModule
      ),
  },
]
@NgModule({
  declarations: [
    HotelComponent,
    HotelSearchComponent,
    HotelAddComponent
  ],
  imports: [
    ToastModule,
    TableModule,
    DialogModule,
    CommonModule,
    FileUploadModule,
    ToolbarModule,
    MatMenuModule,
    CalendarModule,
    NgSelectModule,
    InputTextModule,
    ReactiveFormsModule,
    FormsModule,
    MatButtonModule,
    MatCheckboxModule,
    ButtonModule,
    RouterModule.forChild(routes),
  ],
  providers:[ManageHotelService ]
})
export class HotelModule { }
