import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

// Import Containers
import {
  FullLayout,
  SimpleLayout
} from './containers';

export const routes: Routes = [
  {
    path: '',
    redirectTo: 'dashboard',
    pathMatch: 'full',
  },
  {
    path: '',
    component: FullLayout,
    data: {
      title: 'Home'
    },
    children: [
      {
        path: 'dashboard',
        loadChildren: './views/dashboard/dashboard.module#DashboardModule'
      },
      {
        path: 'components',
        loadChildren: './views/components/components.module#ComponentsModule'
      },
      {
        path: 'icons',
        loadChildren: './views/icons/icons.module#IconsModule'
      },
      {
        path: 'widgets',
        loadChildren: './views/widgets/widgets.module#WidgetsModule'
      },
      {
        path: 'charts',
        loadChildren: './views/chartjs/chartjs.module#ChartJSModule'
      },
      {
        path: 'masters',
        loadChildren: './views/masters/masters.module#MastersModule'
      },
      {
        path: 'status',
        loadChildren: './views/status/status.module#StatusModule'
      },
      {
        path: 'enrolment',
        loadChildren: './views/enrolment/enrolment.module#EnrolmentModule'
      },
	   {
        path: 'studymaterial',
        loadChildren: './views/studymaterial/studymaterial.module#StudymaterialModule'
      },
	   {
        path: 'courier',
        loadChildren: './views/courier/courier.module#CourierModule'
     },
      {
        path: 'paymentdetails',
        loadChildren: './views/payment-details/payment-details.module#PaymentDetailsModule',

      }
    ]
  },
  {
    path: 'pages',
    component: SimpleLayout,
    data: {
      title: 'Pages'
    },
    children: [
      {
        path: '',
        loadChildren: './views/pages/pages.module#PagesModule',
      }
    ]
  }
];

@NgModule({
  imports: [ RouterModule.forRoot(routes, {useHash: true})],
  exports: [ RouterModule ]
})
export class AppRoutingModule {}
