How camilo13/sistemaacademico works
1. This is a Laravel-based school information system. The core runtime is a standard PHP/Laravel MVC app: HTTP requests enter through public/index.php, pass through middleware, are routed in routes/web.php, and are handled by controllers in app/Http/Controllers.
2. The application is organized by business module rather than by technical layer. The main modules are:
- Académico: year, periods, grades, groups, subjects, schedules, enrollments, subject enrollment, grades/notes, and report cards.
- Docente: teacher dashboards for attendance, groups, schedules, and grade entry.
- Estudiante: student views for attendance, schedule, grades, and report cards.
- Admin: user and configuration management.
- Biblioteca: library content and resources, split into gestion and lectura.
- Portal/Publico: public-facing site content such as carousel and events.
- Solicitudes: request management and submission flow.
- Perfil: user profile management.
- Dashboard: role-specific landing pages for admin, teacher, and student.
3. The boundary between roles is explicit. app/Http/Middleware/VerificarRol.php suggests authorization is enforced by role at the route/controller level, and the separate dashboard controllers and menu layouts indicate each role sees a different navigation and feature set.
4. Data is stored in Eloquent models under app/Models, with one model per domain entity: users, academic years, periods, grades, groups, subjects, assignments, enrollments, enrollment-subject links, grades, schedules, attendance, library materials/resources, requests, settings, carousel items, and events. The migrations under database/migrations define the schema backbone for these entities.
5. Academic workflow is one of the main data flows in the system. Administrative controllers create the school structure first: sede, grado, materia, grupo, anio lectivo, periodo, and asignacion. Those entities then feed downstream flows for inscripcion, inscripcion_materia, horario, nota, asistencia, and boletin generation.
6. There is a dedicated report-generation layer in app/Services. CalculoAcademicoService and BoletinService indicate business rules for computing grades/averages and assembling report card output are isolated from controllers. That separation is important: controllers likely orchestrate requests, while services own calculation logic and report composition.
7. The UI is server-rendered with Blade templates under resources/views. View folders mirror the controller/module structure, which makes the screen architecture easy to map: each module has its own create/edit/index/show pages, plus role-specific dashboards and layout shells for admin, docente, estudiante, and publico.
8. Static front-end assets are split in two tracks. resources/ contains the Laravel build assets, while public/css, public/js, and public/img hold the app’s compiled and module-scoped assets. The CSS/JS tree is also organized by module, so each subsystem can have its own styling and client-side behavior without a shared SPA layer.
9. The public site is a separate presentation boundary from the authenticated system. Public pages in resources/views/publico and controllers under app/Http/Controllers/public serve informational pages like inicio, eventos, contacto, and sobrenosotros, backed by public-facing carousel and event content in the portal module.
10. The library subsystem is a distinct content-management area. It has management controllers and views for authorship/administration of materials and resources, plus read-only “lectura” controllers and views for consumers. This indicates a curator/reader split rather than a single CRUD surface.
11. There is a small auxiliary Python component under python/ that appears to generate analytics artifacts. The checked-in outputs in python/storage/app/public/reporte_analisis suggest it produces a CSV and PDF report, likely as an offline or batch analysis companion to the Laravel app rather than part of the main request path.
12. Persistence and file handling are standard Laravel infrastructure. The app uses migrations/seeders for database lifecycle, storage/ for logs and generated files, and the public disk for downloadable outputs. The presence of PDF preview pages and generated report files suggests document export is a meaningful output boundary in the system.
13. Operationally, this repository is a monolith with clear internal module boundaries, not a microservice architecture. The key diagram should show one Laravel app at the center, role-based entry points around it, a shared relational datastore beneath it, and a separate Python reporting sidecar for analysis/export artifacts.
Main entry points: Models Eloquent models · Dashboard Dashboards · Controllers Controllers · Academico Enrollment flow
Components 22
Laravel app
Main PHP/Laravel monolith and request lifecycle
- Front entry · HTTP entry into the Laravel app
public/index.php - Role guard · Enforces role-based access across routes
app/Http/Middleware/VerificarRol.php - Web routes · Main HTTP routing surface
routes/web.php - Controllers · Central controller layer for all modules
app/Http/Controllers - Blade views · Server-rendered screens and layouts
resources/views
Académico
Core school-operations workflow
- Academic services · Grade calculation and report composition
app/Services - School structure · Sede, grado, materia, grupo, año y periodo setup
app/Http/Controllers/Modulos/Academico/Estructura - Enrollment flow · Asignación, inscripción, materias, horario, notas y asistencia
app/Http/Controllers/Modulos/Academico - Report cards · Boletines and printable academic summaries
app/Http/Controllers/Modulos/Academico/BoletinController.php
Role UIs
Dashboards and role-specific presentation layers
- Teacher tools · Attendance, groups, schedules, and grade entry
app/Http/Controllers/Modulos/Docente - Student tools · Attendance, schedule, grades, and boletín views
app/Http/Controllers/Modulos/Estudiante - Dashboards · Role-specific landing pages for admin, teacher, and student
app/Http/Controllers/Modulos/Dashboard
Content modules
Public site, library, requests, and profile features
- Admin module · User and configuration management
app/Http/Controllers/Modulos/Admin - Library · Gestion and lectura split for materials and resources
app/Http/Controllers/Modulos/Biblioteca - Public portal · Carousel and events for the public site
app/Http/Controllers/Modulos/Portal - Public pages · Inicio, eventos, contacto, and about pages
app/Http/Controllers/public/PublicController.php - Requests · Solicitud submission and management flow
app/Http/Controllers/Modulos/Solicitudes - Profile · User profile management
app/Http/Controllers/Modulos/Perfil/PerfilController.php
Data & storage
Persistent models, migrations, and generated artifacts
- Eloquent models · Shared domain entities for users, academic data, library, portal, and requests
app/Models - Migrations · Database schema definitions for the monolith
database/migrations - Storage · Logs, generated PDFs, and downloadable artifacts
storage - Analytics sidecar · Offline analytics/report generation companion
python/app.py
Connections 24
- Front entry → Role guard: bootstraps · Requests enter the Laravel pipeline
- Role guard → Web routes: authorizes · Role checks gate route access
- Web routes → Controllers: dispatches · Routes resolve to controller actions
- Controllers → Blade views: renders · Controllers return Blade screens
- Controllers → Eloquent models: reads/writes · Controllers coordinate domain persistence
- Eloquent models → Migrations: defined by · Model entities map to schema migrations
- School structure → Eloquent models: builds core data · Creates the school structure used downstream
- Enrollment flow → Eloquent models: operates on · Enrollment, schedule, grades, and attendance
- Enrollment flow → Academic services: uses rules · Academic operations depend on calculation services
- Report cards → Academic services: composes · Report cards are assembled from service logic
- Academic services → Storage: exports · Boletins and generated documents land in storage
- Dashboards → Teacher tools: routes to · Teacher dashboard links into teacher tools
- Dashboards → Student tools: routes to · Student dashboard links into student tools
- Dashboards → Admin module: routes to · Admin dashboard links into admin tools
- Teacher tools → Enrollment flow: enters · Teacher workflows feed attendance and grading
- Student tools → Report cards: views · Students consume academic summaries and grades
- Admin module → Eloquent models: manages · Admin config and user management persist to models
- Library → Eloquent models: manages · Library content and resources are stored as models
- Public portal → Eloquent models: publishes · Carousel and event content is data-backed
- Public pages → Public portal: consumes · Public pages show portal content
- Requests → Eloquent models: tracks · Requests are stored and processed through the domain model
- Profile → Eloquent models: updates · Profile changes persist on the user model
- Analytics sidecar → Storage: produces · Batch analytics outputs CSV/PDF artifacts
- Analytics sidecar → Report cards: complements · Offline analysis supports reporting workflows