import { Routes, RouterModule } from '@angular/router';
import { NgModule } from '@angular/core';
import { LayoutPageComponent } from './pages/layout-page/layout-page.component';
import { MainComponent } from './pages/main/main.component';
import { CardsHijosComponent } from './pages/cards-hijos/cards-hijos.component';
import { CalendarComponent } from './pages/calendar/calendar.component';
import { registroAlumnoComponent } from './pages/registroAlumno/registroAlumno.component';
import { registroComponent, RegistroAdComponent } from './pages/Registro/registro.component';
import { CircularHijosComponent } from './pages/circularHijos/circular-hijos.component';
import { BitacoraHijosComponent } from './pages/bitacora-hijos/bitacora-hijos.component';
import { FormulariosComponent } from './pages/formularios/formularios.component';
import { ListaFormulariosComponent } from './pages/lista-formularios/lista-formularios.component';
import { TareasHijosComponent } from './pages/tareas-hijos/tareas-hijos.component';




const routes: Routes = [
    {
        path: '', component: LayoutPageComponent, children: [
            { path: 'main', component: MainComponent },
            { path: 'misHijos', component: CardsHijosComponent },
            { path: 'calendar', component: CalendarComponent },
            { path: 'registroAlumno', component: registroAlumnoComponent },
            { path: 'registro/:id', component: registroComponent },
            { path: 'registroAd/:id', component: RegistroAdComponent },
            { path: 'circularHijo/:id', component: CircularHijosComponent },
            { path: 'tareaHijo/:id', component: TareasHijosComponent },
            { path: 'bitacoraHijo/:id', component: BitacoraHijosComponent },
            { path: 'formularios', component: FormulariosComponent },
          { path: 'formularios/lista', component: ListaFormulariosComponent },


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

        ]
    },

];

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