import { NgModule,NO_ERRORS_SCHEMA ,CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { NbDialogModule, NbListModule, NbMenuModule, NbToggleModule, NbTooltipModule } from '@nebular/theme';

import { ThemeModule } from '../@theme/theme.module';
import { PagesComponent } from './pages.component';
import { DashboardModule } from './dashboard/dashboard.module';
import { PagesRoutingModule } from './pages-routing.module';
import { LoginComponent } from './auth/login/login.component';
import { FormsModule as ngFormsModule } from '@angular/forms';
import { DataTableModule } from 'ornamentum';
import { FormGroup, FormsModule, ReactiveFormsModule} from '@angular/forms';
import {
  NbActionsModule,
  NbButtonModule,
  NbCardModule,
  NbCheckboxModule,
  NbDatepickerModule, NbIconModule,
  NbInputModule,
  NbRadioModule,
  NbSelectModule,
  NbUserModule,
} from '@nebular/theme';
import { UsersComponent } from './users/users.component';

import { NbTreeGridModule } from '@nebular/theme';
import { Ng2SmartTableModule } from 'ng2-smart-table';
import { UserFormComponent } from './users/user-form/user-form.component';
import { CustomerComponent } from './customer/customer.component';
import { CustomerFormComponent } from './customer/customer-form/customer-form.component';
import { DriverComponent } from './driver/driver.component';
import { DriverFormComponent } from './driver/driver-form/driver-form.component';
import { ProductComponent } from './product/product.component';
import { ProductFormComponent } from './product/product-form/product-form.component';
import { OrderComponent } from './order/order.component';
import { OrderFormComponent } from './order/order-form/order-form.component';
import { OrderSummaryFormComponent } from './order/order-summary-form/order-summary-form.component';
import { CancelFormComponent } from './order/cancel-form/cancel-form.component';
import { AssignFormComponent } from './order/assign-form/assign-form.component';
import { ProfileComponent } from './profile/profile.component';
import { MixedFormComponent } from './order/mixed-form/mixed-form.component';
import { AuthComponent } from './auth/auth/auth.component';
import { ForgotPasswordComponent } from './auth/forgot-password/forgot-password.component';
import { OtpComponent } from './auth/otp/otp.component';
import { ResetPasswordComponent } from './auth/reset-password/reset-password.component';
import { NgxDaterangepickerMd } from 'ngx-daterangepicker-material';
import { ViewDetailsComponent } from './order/view-details/view-details.component';
import { SummaryListComponent } from './summary-list/summary-list.component';
import { SummaryDetailsComponent } from './summary-list/summary-details/summary-details.component';
import { EmailComponent } from './email/email.component';
import { DriverySheetComponent } from './drivery-sheet/drivery-sheet.component';
import { AddOrderComponent } from './order/add-order/add-order.component';
import { ReturnSheetComponent } from './return-sheet/return-sheet.component';
import { AuthGuard } from './_guard/auth.guard';
@NgModule({
  imports: [
    PagesRoutingModule,
    ThemeModule,
    NbMenuModule,
    DashboardModule,
    ThemeModule,
    NbInputModule,
    NbCardModule,
    NbButtonModule,
    NbActionsModule,
    NbUserModule,
    NbCheckboxModule,
    NbRadioModule,
    NbTooltipModule,
    FormsModule, ReactiveFormsModule,
    NbSelectModule,
    NbIconModule,
    ngFormsModule,
    NbCardModule,
    NbTreeGridModule,
    NbIconModule,
    NbInputModule,
    ThemeModule,  NbDatepickerModule.forRoot(),
    NbListModule,NbToggleModule,
    NbDialogModule.forChild(),   DataTableModule.forRoot(),   NgxDaterangepickerMd.forRoot(),
    Ng2SmartTableModule,
  ],
  declarations: [
    PagesComponent,
    LoginComponent,
    UsersComponent,
    UserFormComponent,
    CustomerComponent,
    CustomerFormComponent,
    DriverComponent,
    DriverFormComponent,
    ProductComponent,
    ProductFormComponent,
    OrderComponent,
    OrderFormComponent,
    OrderSummaryFormComponent,
    CancelFormComponent,
    AssignFormComponent,
    ProfileComponent,
    MixedFormComponent,
    AuthComponent,ForgotPasswordComponent, OtpComponent,ResetPasswordComponent, ViewDetailsComponent, SummaryListComponent, SummaryDetailsComponent, EmailComponent, DriverySheetComponent, AddOrderComponent, ReturnSheetComponent,
  ],
  providers:[AuthGuard],
  schemas: [CUSTOM_ELEMENTS_SCHEMA,NO_ERRORS_SCHEMA],
})
export class PagesModule {
}
