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';





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', component: registroComponent},
            {path:'registroAd', component: RegistroAdComponent},
            
            { path: '', redirectTo: 'main', pathMatch: 'full' },
            { path: '**', redirectTo: '404' },

        ]
    },

];

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