import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
import { LayoutPageComponent } from "./pages/layout-page/layout-page.component";
import { MainComponent } from "./pages/main/main.component";
import { CardGruposComponent } from "./pages/card-grupos/card-grupos.component";
import { RegistroBitacoraComponent } from './pages/RegistroBitacora/registro-bitacora.component';
import { CentroRecursosComponent } from "./pages/centro-recursos/centro-recursos.component";
import { CursoMateriaComponent } from "./pages/curso-materia/curso-materia.component";
import { AsistenciaComponent } from "./pages/asistencia/asistencia.component";
import { RegistroCalificacionesComponent } from "./pages/registroCalificaciones/registro-calificaciones.component";
import { TareasComponent } from "./pages/tareas/tareas.component";





const routes: Routes = [
    {
        path: '', component: LayoutPageComponent, children: [
            { path: 'main', component: MainComponent },
            { path: 'asistencia', component: AsistenciaComponent },
            { path: 'tareas', component: TareasComponent },
            { path: 'registroBitacora', component: RegistroBitacoraComponent },
            { path: 'centroRecursos', component: CentroRecursosComponent },
            { path: 'cursoMateria/:id', component: CursoMateriaComponent },
            { path: 'registroCalificaciones', component: RegistroCalificacionesComponent },

            //     { path: 'calendar', component: CalendarComponent },
            //     {path:'registroAlumno', component: registroAlumnoComponent},
            //     {path:'registro', component: registroComponent},
            //     {path:'registroAd', component: RegistroAdComponent},
            //     {path:'circularHijo', component: CircularHijosComponent},

            { path: '', redirectTo: 'main', pathMatch: 'full' },
            { path: '**', redirectTo: '404' },

        ]
    },

];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class ProfesorRoutingModule {
}
