# zalmoxis26/trafficmanagement architecture

> Architecture diagram of the GitHub repository zalmoxis26/trafficmanagement, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/zalmoxis26/trafficmanagement
- Repository: https://github.com/zalmoxis26/trafficmanagement

## Overview

1. This is a Laravel monolith for traffic/customs document management. The application is organized in the standard Laravel layers: HTTP controllers, Eloquent models, Blade views, console commands, queued jobs, events, mail/notifications, and database migrations.

2. The core business domain is centered on a small set of linked records: `Empresa`, `Trafico`, `Embarque`, `Pedimento`, `Revisione`, `Anexo`, `Comment`, `Historial`, and the pivot `UsersEmpresa`. These entities represent companies, traffic cases, shipments, customs pedimentos, review stages, attachments, comments, and audit/history tracking.

3. The main user-facing flows are CRUD-heavy and are split by domain area. There are dedicated controllers and views for tráfico, embarque, pedimento, revisión, anexo, empresa, users-empresa, roles, and comments. Most pages are server-rendered Blade templates, not a separate SPA.

4. `Trafico` appears to be the central aggregate. It is connected to embarques, pedimentos, revisiones, anexos, and comments through foreign keys and pivot tables. Several migrations add lifecycle fields like closed date, invoice attachment, and review linkage, showing that traffic records evolve through a managed workflow.

5. Authentication is built on Laravel’s native auth scaffolding, but access is further constrained by approval and verification logic. The custom middleware `EnsureUserIsVerifiedAndApproved` indicates that a user must be both verified and manually approved before using the application. Role management is supported by the permission tables and dedicated role assignment views/controllers.

6. There is an operational ingestion pipeline for external files, especially FTP-based imports. Console commands such as `DispatchFtpJob` and `ProcessAdpSaiFtpFilesCommand`, plus jobs like `ProcessFtpFiles` and `ProcessAdpSaiFtpFiles`, indicate asynchronous processing of incoming document folders and creation/updating of domain records from those files.

7. The app also has an integration path for document sources beyond the local UI. The presence of `DocumentFtpController`, `AdpPedimentoSaiAwsController`, and document views for `documentosFTP` and `documentosLocales` suggests a boundary between externally received files and internally managed records.

8. Events are used to signal state changes in the domain. Events like `TraficoCreated`, `FacturaUpdated`, `RevisionUpdated`, `MxDocsStatusUpdated`, and comment events imply that the app broadcasts or reacts to record updates across the UI and notification layers.

9. Real-time or near-real-time client updates are likely supported through Laravel broadcasting. The repository includes `broadcasting`, `reverb`, and front-end Echo bootstrap files, so status changes and comment activity can be pushed to connected clients instead of only being polled.

10. Notifications and email are a first-class output channel. Mails exist for factura updates, revision status, user approval, and registration verification, while notifications cover new user registration and approval. This makes approval and document status changes visible both in-app and by email.

11. Reporting/export is handled server-side through dedicated export classes. `TraficoExport` and `EmbarquesExport` indicate downloadable reports, likely for operational tracking and management review rather than interactive analytics.

12. File and persistence boundaries are conventional Laravel ones: database-backed Eloquent models/migrations for domain state, and storage/public folders for uploads and generated artifacts. The application’s architecture is therefore a single Laravel backend with synchronous CRUD, asynchronous file ingestion, and notification/broadcast side effects around a traffic-management core.

Main entry points: [`app/Models/Trafico.php`](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/Trafico.php) (Trafico), [`app/Events/TraficoCreated.php`](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Events/TraficoCreated.php) (Domain Events), [`app/Models/Comment.php`](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/Comment.php) (Comment), [`resources/views/trafico/index.blade.php`](https://github.com/zalmoxis26/trafficmanagement/blob/main/resources/views/trafico/index.blade.php) (Blade UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Presentation"]
  node_trafico_controller["Trafico<br/>controller"]
  node_embarque_controller["Embarque<br/>controller"]
  node_pedimento_controller["Pedimento<br/>controller"]
  node_revisione_controller["Revisión<br/>controller"]
  node_anexo_controller["Anexo<br/>controller"]
  node_empresa_controller["Empresa<br/>controller"]
  node_users_empresa_controller["Users-Empresa<br/>controller"]
  node_comment_controller["Comment<br/>controller"]
  node_document_ftp_controller["Docs FTP<br/>controller"]
  node_adp_sai_controller["ADP SAI<br/>controller"]
  node_role_controller["Roles<br/>controller"]
  node_blade_ui["Blade UI<br/>views<br/>[index.blade.php]"]
end

subgraph group_domain["Domain"]
  node_trafico_model[("Trafico<br/>aggregate<br/>[Trafico.php]")]
  node_empresa_model[("Empresa<br/>entity<br/>[Empresa.php]")]
  node_embarque_model[("Embarque<br/>entity<br/>[Embarque.php]")]
  node_pedimento_model[("Pedimento<br/>entity<br/>[Pedimento.php]")]
  node_revisione_model[("Revisión<br/>entity<br/>[Revisione.php]")]
  node_anexo_model[("Anexo<br/>entity<br/>[Anexo.php]")]
  node_comment_model[("Comment<br/>entity<br/>[Comment.php]")]
  node_historial_model[("Historial<br/>audit<br/>[Historial.php]")]
  node_users_empresa_model[("Users-Empresa<br/>pivot<br/>[UsersEmpresa.php]")]
  node_user_model[("User<br/>identity<br/>[User.php]")]
end

subgraph group_ingestion["Ingestion"]
  node_ftp_command["FTP Command<br/>console command<br/>[DispatchFtpJob.php]"]
  node_adp_command["ADP Command<br/>console command"]
  node_ftp_job["FTP Job<br/>queued job"]
  node_adp_job["ADP Job<br/>queued job"]
end

subgraph group_delivery["Delivery"]
  node_domain_events{{"Domain Events<br/>[TraficoCreated.php]"}}
  node_mail_layer["Mail<br/>[FacturaMail.php]"]
  node_notification_layer["Notifications"]
  node_export_layer["Exports<br/>[TraficoExport.php]"]
  node_broadcasting_layer{{"Broadcasting<br/>realtime<br/>[channels.php]"}}
end

subgraph group_platform["Platform"]
  node_auth_middleware{{"Approval Gate<br/>middleware"}}
  node_auth_controllers["Auth"]
  node_echo_bootstrap["Echo Bootstrap<br/>client bootstrap<br/>[echo.js]"]
end

node_trafico_controller -->|"manages"| node_trafico_model
node_embarque_controller -->|"manages"| node_embarque_model
node_pedimento_controller -->|"manages"| node_pedimento_model
node_revisione_controller -->|"manages"| node_revisione_model
node_anexo_controller -->|"manages"| node_anexo_model
node_empresa_controller -->|"manages"| node_empresa_model
node_users_empresa_controller -->|"manages"| node_users_empresa_model
node_comment_controller -->|"manages"| node_comment_model
node_document_ftp_controller -->|"triggers"| node_ftp_job
node_adp_sai_controller -->|"triggers"| node_adp_job
node_ftp_command -->|"dispatches"| node_ftp_job
node_adp_command -->|"dispatches"| node_adp_job
node_ftp_job -->|"creates/updates"| node_trafico_model
node_adp_job -->|"creates/updates"| node_pedimento_model
node_trafico_model -->|"has many"| node_embarque_model
node_trafico_model -->|"links to"| node_pedimento_model
node_trafico_model -->|"tracks"| node_revisione_model
node_trafico_model -->|"has many"| node_anexo_model
node_trafico_model -->|"has many"| node_comment_model
node_trafico_model -->|"audited by"| node_historial_model
node_empresa_model -->|"has many"| node_users_empresa_model
node_user_model -->|"has many"| node_users_empresa_model
node_comment_model -->|"emits"| node_broadcasting_layer
node_trafico_model -->|"emits"| node_domain_events
node_revisione_model -->|"emits"| node_domain_events
node_comment_model -->|"emits"| node_domain_events
node_domain_events -->|"notifies"| node_mail_layer
node_domain_events -->|"notifies"| node_notification_layer
node_domain_events -->|"broadcasts"| node_broadcasting_layer
node_export_layer -->|"exports"| node_trafico_model
node_export_layer -->|"exports"| node_embarque_model
node_auth_middleware -->|"guards"| node_auth_controllers
node_auth_controllers -->|"authenticates"| node_user_model
node_echo_bootstrap -->|"subscribes"| node_broadcasting_layer
node_blade_ui -->|"renders"| node_trafico_controller
node_blade_ui -->|"renders"| node_embarque_controller
node_blade_ui -->|"renders"| node_pedimento_controller

click node_trafico_controller "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/TraficoController.php"
click node_embarque_controller "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/EmbarqueController.php"
click node_pedimento_controller "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/PedimentoController.php"
click node_revisione_controller "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/RevisioneController.php"
click node_anexo_controller "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/AnexoController.php"
click node_empresa_controller "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/EmpresaController.php"
click node_users_empresa_controller "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/UsersEmpresaController.php"
click node_comment_controller "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/CommentController.php"
click node_document_ftp_controller "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/DocumentFtpController.php"
click node_adp_sai_controller "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/AdpPedimentoSaiAwsController.php"
click node_role_controller "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/UserRoleController.php"
click node_blade_ui "https://github.com/zalmoxis26/trafficmanagement/blob/main/resources/views/trafico/index.blade.php"
click node_trafico_model "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/Trafico.php"
click node_empresa_model "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/Empresa.php"
click node_embarque_model "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/Embarque.php"
click node_pedimento_model "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/Pedimento.php"
click node_revisione_model "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/Revisione.php"
click node_anexo_model "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/Anexo.php"
click node_comment_model "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/Comment.php"
click node_historial_model "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/Historial.php"
click node_users_empresa_model "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/UsersEmpresa.php"
click node_user_model "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/User.php"
click node_ftp_command "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Console/Commands/DispatchFtpJob.php"
click node_adp_command "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Console/Commands/ProcessAdpSaiFtpFilesCommand.php"
click node_ftp_job "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Jobs/ProcessFtpFiles.php"
click node_adp_job "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Jobs/ProcessAdpSaiFtpFiles.php"
click node_domain_events "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Events/TraficoCreated.php"
click node_mail_layer "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Mail/FacturaMail.php"
click node_notification_layer "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Notifications/UserApprovedNotification.php"
click node_export_layer "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Exports/TraficoExport.php"
click node_broadcasting_layer "https://github.com/zalmoxis26/trafficmanagement/blob/main/routes/channels.php"
click node_auth_middleware "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Middleware/EnsureUserIsVerifiedAndApproved.php"
click node_auth_controllers "https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/Auth/LoginController.php"
click node_echo_bootstrap "https://github.com/zalmoxis26/trafficmanagement/blob/main/resources/js/echo.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_trafico_controller,node_embarque_controller,node_pedimento_controller,node_revisione_controller,node_anexo_controller,node_empresa_controller,node_users_empresa_controller,node_comment_controller,node_document_ftp_controller,node_adp_sai_controller,node_role_controller,node_blade_ui toneBlue
class node_trafico_model,node_empresa_model,node_embarque_model,node_pedimento_model,node_revisione_model,node_anexo_model,node_comment_model,node_historial_model,node_users_empresa_model,node_user_model toneAmber
class node_ftp_command,node_adp_command,node_ftp_job,node_adp_job toneMint
class node_domain_events,node_mail_layer,node_notification_layer,node_export_layer,node_broadcasting_layer toneRose
class node_auth_middleware,node_auth_controllers,node_echo_bootstrap toneIndigo
```

## Components

### Presentation

HTTP controllers and Blade views for the server-rendered UI

- [Trafico](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/TraficoController.php): controller · Main CRUD and workflow controller for traffic cases · `app/Http/Controllers/TraficoController.php`
- [Embarque](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/EmbarqueController.php): controller · Shipment CRUD and traffic-linked shipment flows · `app/Http/Controllers/EmbarqueController.php`
- [Pedimento](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/PedimentoController.php): controller · Customs document CRUD and traffic-linked creation/editing · `app/Http/Controllers/PedimentoController.php`
- [Revisión](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/RevisioneController.php): controller · Review stage CRUD and status transitions · `app/Http/Controllers/RevisioneController.php`
- [Anexo](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/AnexoController.php): controller · Attachment CRUD and document linking · `app/Http/Controllers/AnexoController.php`
- [Empresa](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/EmpresaController.php): controller · Company CRUD and company settings · `app/Http/Controllers/EmpresaController.php`
- [Users-Empresa](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/UsersEmpresaController.php): controller · User-to-company assignment management · `app/Http/Controllers/UsersEmpresaController.php`
- [Comment](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/CommentController.php): controller · Comment creation and threading around traffic and shipments · `app/Http/Controllers/CommentController.php`
- [Docs FTP](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/DocumentFtpController.php): controller · UI and intake boundary for externally received documents · `app/Http/Controllers/DocumentFtpController.php`
- [ADP SAI](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/AdpPedimentoSaiAwsController.php): controller · AWS-based document source integration for pedimento files · `app/Http/Controllers/AdpPedimentoSaiAwsController.php`
- [Roles](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/UserRoleController.php): controller · Role assignment and permission management UI · `app/Http/Controllers/UserRoleController.php`
- [Blade UI](https://github.com/zalmoxis26/trafficmanagement/blob/main/resources/views/trafico/index.blade.php): views · Server-rendered domain pages and document views · `resources/views/trafico/index.blade.php`

### Domain

Core traffic-management entities and their relationships

- [Trafico](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/Trafico.php): aggregate · Central case record coordinating the workflow · `app/Models/Trafico.php`
- [Empresa](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/Empresa.php): entity · Company record and notification preferences · `app/Models/Empresa.php`
- [Embarque](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/Embarque.php): entity · Shipment record linked to a traffic case · `app/Models/Embarque.php`
- [Pedimento](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/Pedimento.php): entity · Customs document record associated with traffic · `app/Models/Pedimento.php`
- [Revisión](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/Revisione.php): entity · Review stage and status attachment for a traffic case · `app/Models/Revisione.php`
- [Anexo](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/Anexo.php): entity · Attachment record for traffic and related documents · `app/Models/Anexo.php`
- [Comment](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/Comment.php): entity · Discussion and activity comments on cases and shipments · `app/Models/Comment.php`
- [Historial](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/Historial.php): audit · Audit trail and history tracking for changes · `app/Models/Historial.php`
- [Users-Empresa](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/UsersEmpresa.php): pivot · Pivot link between users and companies · `app/Models/UsersEmpresa.php`
- [User](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Models/User.php): identity · Authenticated user with approval state · `app/Models/User.php`

### Ingestion

Console commands and queued jobs that import external files

- [FTP Command](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Console/Commands/DispatchFtpJob.php): console command · Schedules or dispatches file-ingestion jobs · `app/Console/Commands/DispatchFtpJob.php`
- [ADP Command](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Console/Commands/ProcessAdpSaiFtpFilesCommand.php): console command · Processes ADP/SAI FTP folders from the console · `app/Console/Commands/ProcessAdpSaiFtpFilesCommand.php`
- [FTP Job](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Jobs/ProcessFtpFiles.php): queued job · Asynchronous processing of incoming FTP files · `app/Jobs/ProcessFtpFiles.php`
- [ADP Job](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Jobs/ProcessAdpSaiFtpFiles.php): queued job · Asynchronous processing of ADP SAI files · `app/Jobs/ProcessAdpSaiFtpFiles.php`

### Delivery

Events, mail, notifications, exports, and realtime push

- [Domain Events](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Events/TraficoCreated.php): events · State-change signals for traffic, comments, and revisions · `app/Events/TraficoCreated.php`
- [Mail](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Mail/FacturaMail.php): mails · Email notifications for factura, revision, approval, and verification · `app/Mail/FacturaMail.php`
- [Notifications](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Notifications/UserApprovedNotification.php): notifications · In-app notifications for user registration and approval · `app/Notifications/UserApprovedNotification.php`
- [Exports](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Exports/TraficoExport.php): exports · Server-side downloadable reporting for traffic and shipments · `app/Exports/TraficoExport.php`
- [Broadcasting](https://github.com/zalmoxis26/trafficmanagement/blob/main/routes/channels.php): realtime · Realtime client update channel for comments and status changes · `routes/channels.php`

### Platform

Auth, middleware, and client-side realtime bootstrap

- [Approval Gate](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Middleware/EnsureUserIsVerifiedAndApproved.php): middleware · Requires verified and manually approved users · `app/Http/Middleware/EnsureUserIsVerifiedAndApproved.php`
- [Auth](https://github.com/zalmoxis26/trafficmanagement/blob/main/app/Http/Controllers/Auth/LoginController.php): auth controllers · Native authentication, registration, password reset, and verification · `app/Http/Controllers/Auth/LoginController.php`
- [Echo Bootstrap](https://github.com/zalmoxis26/trafficmanagement/blob/main/resources/js/echo.js): client bootstrap · Front-end realtime client wiring for broadcast updates · `resources/js/echo.js`

## Connections

- Trafico → Trafico: manages · Creates, updates, closes, and shows traffic cases
- Embarque → Embarque: manages · CRUD for shipments linked to traffic
- Pedimento → Pedimento: manages · CRUD for customs documents and traffic-linked edits
- Revisión → Revisión: manages · CRUD for review stages and attached status fields
- Anexo → Anexo: manages · CRUD for attachments and related uploads
- Empresa → Empresa: manages · CRUD for company records
- Users-Empresa → Users-Empresa: manages · Assigns users to companies
- Comment → Comment: manages · Creates comments on traffic and shipment records
- Docs FTP → FTP Job: triggers · Hands external documents to background processing
- ADP SAI → ADP Job: triggers · Starts ADP SAI ingestion workflow
- FTP Command → FTP Job: dispatches · Console entrypoint for FTP file processing
- ADP Command → ADP Job: dispatches · Console entrypoint for ADP SAI file processing
- FTP Job → Trafico: creates/updates · Imports incoming file data into traffic records
- ADP Job → Pedimento: creates/updates · Imports ADP SAI data into pedimentos and related records
- Trafico → Embarque: has many · Traffic aggregates shipments
- Trafico → Pedimento: links to · Traffic is associated with a pedimento
- Trafico → Revisión: tracks · Traffic workflow advances through review stages
- Trafico → Anexo: has many · Traffic collects attachments
- Trafico → Comment: has many · Traffic discussion history
- Trafico → Historial: audited by · Changes are recorded in history entries
- Empresa → Users-Empresa: has many · Company membership pivot records
- User → Users-Empresa: has many · User membership and access linkage
- Comment → Broadcasting: emits · Comment activity is pushed to connected clients
- Trafico → Domain Events: emits · Traffic lifecycle changes raise events
- Revisión → Domain Events: emits · Review updates raise domain events
- Comment → Domain Events: emits · Comment creation raises notification events
- Domain Events → Mail: notifies · Events feed email delivery
- Domain Events → Notifications: notifies · Events feed in-app notifications
- Domain Events → Broadcasting: broadcasts · State changes are broadcast to clients
- Exports → Trafico: exports · Traffic reporting extracts domain data
- Exports → Embarque: exports · Shipment reporting extracts domain data
- Approval Gate → Auth: guards · Access depends on verified and approved authentication state
- Auth → User: authenticates · Login, registration, verification, and password flows
- Echo Bootstrap → Broadcasting: subscribes · Client-side Echo listens for broadcast events
- Blade UI → Trafico: renders · Server-rendered pages are served by controllers
- Blade UI → Embarque: renders · UI pages support shipment flows
- Blade UI → Pedimento: renders · UI pages support pedimento flows
