EducaPerú uses Laravel’s Blade template engine with a single master layout and template inheritance. Every page view extendsDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/AlexQuintana147/EducaPeru/llms.txt
Use this file to discover all available pages before exploring further.
layouts/app, which provides the shared header, navigation, footer, and font/script imports. Child views override named sections — title and content — to inject page-specific markup without duplicating the surrounding shell.
View Directory Structure
The App Layout
layouts/app.blade.php is the single master template that all views build upon. It exposes two named yield points consumed by every child view:
@yield('title')— Inserted into the<title>tag. Defaults to the application name fromconfig('app.name')when not overridden.@yield('content')— The main body area where each page’s unique HTML is rendered.
- Fixed header — Contains the EducaPerú logo on the left, a desktop navigation bar in the center, and an Ingresar CTA button (
/login) on the right. - Responsive mobile drawer — A slide-in side menu triggered by a hamburger icon, visible on small screens and hidden on desktop.
- Footer — Displays the brand description, platform navigation links, course quick-links, and contact information.
Creating a New View
Create the Blade file
Add a new file at
resources/views/my-page.blade.php. Use dot notation for nested paths — for example, a file at resources/views/capacitaciones/new-course.blade.php is referenced as 'capacitaciones.new-course' in the route.Extend the layout and define sections
Open the new file and extend the master layout. Set the
title section to a descriptive page title and place all page HTML inside the content section:resources/views/my-page.blade.php
Register a route in routes/web.php
Add a matching The page is now accessible at
GET route so Laravel knows which URL resolves to the new view:routes/web.php
/my-page. See Routes for the full route reference.