How tiavinaliantsoaa/copil works
ESCM COPIL Communication is a private Laravel application for monthly communications reporting. Staff sign in, select a period, enter channel and operational data, and upload supporting files; reporting controllers persist changes and administrators can manage users and close periods. Managers review calculated indicators, archives, a presentation view, and PDF or PowerPoint exports. The graph reflects documented routes and sampled controller/service relationships; some view-to-controller wiring and database schema details were not sampled, so those links are omitted where not evidenced.
Main entry points: DashboardController.php Monthly dashboard · ExportController.php Export endpoints · PeriodController.php Period lifecycle · AttachmentController.php Attachment handling
Components 22
Access and administration
- Sign-in
app/Http/Controllers/Auth/LoginController.php - User management
app/Http/Controllers/UserController.php
Monthly reporting
- Period lifecycle
app/Http/Controllers/PeriodController.php - New-month blueprint
app/Services/ReportBlueprint.php - Monthly dashboard
app/Http/Controllers/DashboardController.php - Report sections
app/Http/Controllers/ReportController.php - Indicator calculations
app/Services/ReportCalculator.php - Attachment handling
app/Http/Controllers/AttachmentController.php
Report records
- User accounts and roles
app/Models/User.php - Communication report
app/Models/CommunicationReport.php - Period records
app/Models/Period.php - Attachment records
app/Models/Attachment.php - Private file storage
- Audit log
app/Models/AuditLog.php
Review and exports
- Presentation mode
app/Http/Controllers/PresentationController.php - Export endpoints
app/Http/Controllers/ExportController.php - PowerPoint generation
app/Services/PptxExportService.php - PDF report view
resources/views/exports/pdf.blade.php - Reporting interface
resources/views/dashboard.blade.php - Charts and previews
resources/js/app.js
Other components
- Staff and managers
- Administrator
Connections 32
- Staff and managers → Sign-in: signs in
- Sign-in → User accounts and roles: authenticates
app/Http/Controllers/Auth/LoginController.php - Administrator → User management: manages accounts
- User management → User accounts and roles: updates
app/Http/Controllers/UserController.php - User management → Audit log: records changes
app/Http/Controllers/UserController.php - Staff and managers → Monthly dashboard: opens period
- Monthly dashboard → Period records: loads periods
app/Http/Controllers/DashboardController.php - Monthly dashboard → User accounts and roles: loads user
app/Http/Controllers/DashboardController.php - Monthly dashboard → Indicator calculations: calculates indicators
app/Http/Controllers/DashboardController.php - Monthly dashboard → Reporting interface: renders
- Reporting interface → Charts and previews: renders charts
- Administrator → Period lifecycle: creates or closes
- Period lifecycle → Period records: creates and updates
app/Http/Controllers/PeriodController.php - Period lifecycle → New-month blueprint: builds report
app/Http/Controllers/PeriodController.php - Period lifecycle → Audit log: records lifecycle
app/Http/Controllers/PeriodController.php - New-month blueprint → Communication report: defines report data
app/Services/ReportBlueprint.php - Staff and managers → Report sections: saves sections
- Report sections → Communication report: updates report
app/Http/Controllers/ReportController.php - Report sections → Audit log: records edits
app/Http/Controllers/ReportController.php - Staff and managers → Attachment handling: uploads files
- Attachment handling → Attachment records: creates and deletes
app/Http/Controllers/AttachmentController.php - Attachment handling → Private file storage: stores and serves
app/Http/Controllers/AttachmentController.php - Attachment handling → Audit log: records uploads
app/Http/Controllers/AttachmentController.php - Staff and managers → Presentation mode: views presentation
- Presentation mode → Period records: loads period
app/Http/Controllers/PresentationController.php - Presentation mode → Indicator calculations: calculates indicators
app/Http/Controllers/PresentationController.php - Staff and managers → Export endpoints: requests export
- Export endpoints → Period records: loads period
app/Http/Controllers/ExportController.php - Export endpoints → Indicator calculations: calculates indicators
app/Http/Controllers/ExportController.php - Export endpoints → PowerPoint generation: generates PPTX
app/Http/Controllers/ExportController.php - Export endpoints → PDF report view: renders PDF
- PowerPoint generation → Private file storage: reads report images
app/Services/PptxExportService.php