# denver-robles/rcal-centralized-system architecture

> Architecture diagram of the GitHub repository denver-robles/rcal-centralized-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/denver-robles/rcal-centralized-system
- Repository: https://github.com/denver-robles/rcal-centralized-system

## Overview

This is a parish and sacramental-records management web application, with staff workflows and a parishioner portal. Parishioners request documents or sacrament schedules; staff manage requests, schedules, records, certificates, clergy and reporting. The graph includes identity verification, auditing and private-file delivery as supporting layers. The README is generic Laravel framework text, so product capabilities are inferred from the source tree and sampled excerpts. Unsampled controllers and integrations are included only where the source index or routes document them; uncertain relationships are omitted.

Main entry points: [`routes/web.php`](https://github.com/denver-robles/rcal-centralized-system/blob/main/routes/web.php) (Web routes), [`app/Http/Controllers/AuthController.php`](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/AuthController.php) (Authentication), [`app/Http/Controllers/SchedulesController.php`](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/SchedulesController.php) (Schedule management), [`app/Http/Controllers/RecordsController.php`](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/RecordsController.php) (Record management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and identity"]
  node_auth["Authentication<br/>[AuthController.php]"]
  node_identity["Identity verification"]
  node_users[("User accounts<br/>[User.php]")]
end

subgraph group_portal["Parishioner portal"]
  node_portal_requests["Document requests"]
  node_document_workflow["Request workflow"]
  node_document_model[("Request records")]
  node_portal_schedule["Schedule requests"]
  node_private_files["Private file delivery"]
end

subgraph group_operations["Parish operations"]
  node_schedules["Schedule management"]
  node_schedule_service["Schedule rules"]
  node_schedule_model[("Sacrament schedules")]
  node_clergy[("Clergy directory<br/>[Clergy.php]")]
  node_certificates["Certificate services"]
  node_templates["Certificate templates"]
end

subgraph group_records["Records and oversight"]
  node_records[("Sacramental records")]
  node_record_workflow["Record management"]
  node_parish_scope["Parish scoping"]
  node_audit["Audit trail<br/>[AuditService.php]"]
  node_audit_logs[("Audit logs<br/>[AuditLog.php]")]
  node_analytics["Analytics and dashboard"]
end

node_parishioner(("Parishioner"))
node_staff(("Parish staff"))
node_web_routes["Web routes<br/>[web.php]"]
node_face_service["Face recognition"]
node_stripe["Stripe identity"]

node_web_routes -->|"routes to"| node_auth
node_web_routes -->|"routes to"| node_portal_requests
node_web_routes -->|"routes to"| node_schedules
node_web_routes -->|"routes to"| node_certificates
node_web_routes -->|"routes to"| node_templates
node_web_routes -->|"routes to"| node_record_workflow
node_web_routes -->|"routes to"| node_analytics
node_web_routes -->|"routes to"| node_private_files
node_parishioner -.->|"uses"| node_web_routes
node_staff -.->|"uses"| node_web_routes
node_auth -->|"verifies identity"| node_identity
node_auth -->|"logs actions"| node_audit
node_auth -->|"compares faces"| node_face_service
node_auth -->|"looks up accounts"| node_users
node_web_routes -->|"routes to"| node_stripe
node_portal_requests -->|"uses workflow"| node_document_workflow
node_portal_requests -->|"creates requests"| node_document_model
node_portal_schedule -->|"creates schedules"| node_schedule_model
node_schedules -->|"queries schedules"| node_schedule_model
node_schedules -->|"uses rules"| node_schedule_service
node_schedules -->|"loads clergy"| node_clergy
node_record_workflow -->|"manages records"| node_records
node_record_workflow -->|"uses scoping"| node_parish_scope
node_record_workflow -->|"logs changes"| node_audit
node_audit -->|"writes audit"| node_audit_logs
node_document_workflow -->|"logs actions"| node_audit
node_analytics -.->|"reads records"| node_records
node_private_files -->|"authorizes download"| node_document_model
node_private_files -->|"authorizes download"| node_schedule_model
node_certificates -.->|"issues certificates"| node_records
node_templates -.->|"populates templates"| node_records

click node_web_routes "https://github.com/denver-robles/rcal-centralized-system/blob/main/routes/web.php"
click node_auth "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/AuthController.php"
click node_identity "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Services/IdentityVerificationService.php"
click node_users "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Models/User.php"
click node_portal_requests "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/PortalController.php"
click node_document_workflow "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Services/DocumentWorkflowService.php"
click node_document_model "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Models/DocumentRequest.php"
click node_portal_schedule "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/PortalController.php"
click node_schedules "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/SchedulesController.php"
click node_schedule_service "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Services/SacramentScheduleService.php"
click node_schedule_model "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Models/SacramentSchedule.php"
click node_clergy "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Models/Clergy.php"
click node_certificates "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/CertificatesController.php"
click node_templates "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/CertificateTemplateController.php"
click node_records "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Models/SacramentalRecord.php"
click node_record_workflow "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/RecordsController.php"
click node_parish_scope "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Services/ParishScopingService.php"
click node_audit "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Services/AuditService.php"
click node_audit_logs "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Models/AuditLog.php"
click node_analytics "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/AnalyticsController.php"
click node_private_files "https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/PrivateStorageController.php"

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_auth,node_identity,node_users toneBlue
class node_portal_requests,node_document_workflow,node_document_model,node_portal_schedule,node_private_files toneAmber
class node_schedules,node_schedule_service,node_schedule_model,node_clergy,node_certificates,node_templates,node_web_routes toneMint
class node_records,node_record_workflow,node_parish_scope,node_audit,node_audit_logs,node_analytics toneRose
class node_parishioner,node_staff,node_face_service,node_stripe toneIndigo
```

## Components

### Access and identity

- [Authentication](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/AuthController.php): `app/Http/Controllers/AuthController.php`
- [Identity verification](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Services/IdentityVerificationService.php): `app/Services/IdentityVerificationService.php`
- [User accounts](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Models/User.php): `app/Models/User.php`

### Parishioner portal

- [Document requests](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/PortalController.php): `app/Http/Controllers/PortalController.php`
- [Request workflow](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Services/DocumentWorkflowService.php): `app/Services/DocumentWorkflowService.php`
- [Request records](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Models/DocumentRequest.php): `app/Models/DocumentRequest.php`
- [Schedule requests](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/PortalController.php): `app/Http/Controllers/PortalController.php`
- [Private file delivery](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/PrivateStorageController.php): `app/Http/Controllers/PrivateStorageController.php`

### Parish operations

- [Schedule management](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/SchedulesController.php): `app/Http/Controllers/SchedulesController.php`
- [Schedule rules](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Services/SacramentScheduleService.php): `app/Services/SacramentScheduleService.php`
- [Sacrament schedules](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Models/SacramentSchedule.php): `app/Models/SacramentSchedule.php`
- [Clergy directory](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Models/Clergy.php): `app/Models/Clergy.php`
- [Certificate services](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/CertificatesController.php): `app/Http/Controllers/CertificatesController.php`
- [Certificate templates](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/CertificateTemplateController.php): `app/Http/Controllers/CertificateTemplateController.php`

### Records and oversight

- [Sacramental records](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Models/SacramentalRecord.php): `app/Models/SacramentalRecord.php`
- [Record management](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/RecordsController.php): `app/Http/Controllers/RecordsController.php`
- [Parish scoping](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Services/ParishScopingService.php): `app/Services/ParishScopingService.php`
- [Audit trail](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Services/AuditService.php): `app/Services/AuditService.php`
- [Audit logs](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Models/AuditLog.php): `app/Models/AuditLog.php`
- [Analytics and dashboard](https://github.com/denver-robles/rcal-centralized-system/blob/main/app/Http/Controllers/AnalyticsController.php): `app/Http/Controllers/AnalyticsController.php`

### Other components

- **Parishioner**
- **Parish staff**
- [Web routes](https://github.com/denver-robles/rcal-centralized-system/blob/main/routes/web.php): `routes/web.php`
- **Face recognition**
- **Stripe identity**

## Connections

- Web routes → Authentication: routes to (evidence: `routes/web.php`)
- Web routes → Document requests: routes to (evidence: `routes/web.php`)
- Web routes → Schedule management: routes to (evidence: `routes/web.php`)
- Web routes → Certificate services: routes to (evidence: `routes/web.php`)
- Web routes → Certificate templates: routes to (evidence: `routes/web.php`)
- Web routes → Record management: routes to (evidence: `routes/web.php`)
- Web routes → Analytics and dashboard: routes to (evidence: `routes/web.php`)
- Web routes → Private file delivery: routes to (evidence: `routes/web.php`)
- Parishioner → Web routes: uses
- Parish staff → Web routes: uses
- Authentication → Identity verification: verifies identity (evidence: `app/Http/Controllers/AuthController.php`)
- Authentication → Audit trail: logs actions (evidence: `app/Http/Controllers/AuthController.php`)
- Authentication → Face recognition: compares faces (evidence: `app/Http/Controllers/AuthController.php`)
- Authentication → User accounts: looks up accounts (evidence: `app/Http/Controllers/AuthController.php`)
- Web routes → Stripe identity: routes to (evidence: `routes/web.php`)
- Document requests → Request workflow: uses workflow (evidence: `app/Http/Controllers/PortalController.php`)
- Document requests → Request records: creates requests (evidence: `app/Http/Controllers/PortalController.php`)
- Schedule requests → Sacrament schedules: creates schedules (evidence: `app/Http/Controllers/PortalController.php`)
- Schedule management → Sacrament schedules: queries schedules (evidence: `app/Http/Controllers/SchedulesController.php`)
- Schedule management → Schedule rules: uses rules (evidence: `app/Http/Controllers/SchedulesController.php`)
- Schedule management → Clergy directory: loads clergy (evidence: `app/Http/Controllers/SchedulesController.php`)
- Record management → Sacramental records: manages records (evidence: `app/Http/Controllers/RecordsController.php`)
- Record management → Parish scoping: uses scoping (evidence: `app/Http/Controllers/RecordsController.php`)
- Record management → Audit trail: logs changes (evidence: `app/Http/Controllers/RecordsController.php`)
- Audit trail → Audit logs: writes audit (evidence: `app/Services/AuditService.php`)
- Request workflow → Audit trail: logs actions (evidence: `app/Services/DocumentWorkflowService.php`)
- Analytics and dashboard → Sacramental records: reads records
- Private file delivery → Request records: authorizes download (evidence: `app/Http/Controllers/PrivateStorageController.php`)
- Private file delivery → Sacrament schedules: authorizes download (evidence: `app/Http/Controllers/PrivateStorageController.php`)
- Certificate services → Sacramental records: issues certificates
- Certificate templates → Sacramental records: populates templates
