# rafel1802/dgt-system architecture

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

- Interactive diagram: https://gitdiagram.com/rafel1802/dgt-system
- Repository: https://github.com/rafel1802/dgt-system

## Overview

Digital Team & CRM Management System is a Laravel application for coordinating team work and business operations. Users work through boards and cards, while separate areas support KPI reviews, website management and Search Console reporting, social-media planning, CRM records, and administration. The graph highlights the sampled board, KPI, and Search Console paths; the README identifies the product but does not describe these runtime flows. Edges are limited to relationships visible in excerpts; other documented-by-tree capabilities are included without inferred connections.

Main entry points: [`app/Http/Controllers/GoogleSearchConsoleController.php`](https://github.com/rafel1802/dgt-system/blob/main/app/Http/Controllers/GoogleSearchConsoleController.php) (Search Console), [`app/Services/GoogleSearchConsole`](https://github.com/rafel1802/dgt-system/tree/main/app/Services/GoogleSearchConsole) (Search services), [`app/Http/Controllers/Board/CardController.php`](https://github.com/rafel1802/dgt-system/blob/main/app/Http/Controllers/Board/CardController.php) (Card operations), [`app/Http/Controllers/Kpi/KpiReviewController.php`](https://github.com/rafel1802/dgt-system/blob/main/app/Http/Controllers/Kpi/KpiReviewController.php) (KPI reviews)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_work["Team Work Management"]
  node_boards[("Workspaces &amp; boards<br/>[Board.php]")]
  node_cards[("Cards &amp; checklists<br/>[Card.php]")]
  node_card_actions["Card operations<br/>[CardController.php]"]
  node_workflow["Board workflow"]
  node_activity[("Activity history<br/>[ActivityLog.php]")]
end

subgraph group_performance["Performance Management"]
  node_kpi_actions["KPI reviews"]
  node_kpi_records[("KPI records")]
end

subgraph group_websites["Websites &amp; Search"]
  node_website_admin["Website management"]
  node_website_records[("Website records<br/>[Website.php]")]
  node_gsc_actions["Search Console"]
  node_gsc_services["Search services"]
  node_gsc_records[("Search data")]
end

subgraph group_business["CRM &amp; Social Media"]
  node_social["Social planning"]
  node_crm[("CRM operations<br/>[Customer.php]")]
end

subgraph group_platform["Application Platform"]
  node_auth["Authentication<br/>[AuthService.php]"]
  node_admin["Administration"]
  node_api["API endpoints"]
  node_user_store[("User accounts<br/>[User.php]")]
end

node_user(("Team member"))
node_google["Google Search Console"]

node_user -.->|"manages cards"| node_card_actions
node_card_actions -->|"updates"| node_cards
node_card_actions -->|"delegates to"| node_workflow
node_cards -->|"belongs to"| node_boards
node_boards -.->|"records activity"| node_activity
node_user -.->|"reviews performance"| node_kpi_actions
node_kpi_actions -->|"creates review"| node_kpi_records
node_kpi_actions -->|"writes audit"| node_kpi_records
node_user -.->|"manages sites"| node_website_admin
node_website_admin -.->|"manages"| node_website_records
node_user -.->|"views reports"| node_gsc_actions
node_gsc_actions -->|"requests sitemap data"| node_gsc_services
node_gsc_actions -->|"requests analytics"| node_gsc_services
node_gsc_actions -->|"reads and deletes"| node_gsc_records
node_gsc_services -.->|"uses search data"| node_gsc_records
node_gsc_services -.->|"uses site data"| node_website_records
node_gsc_actions -.->|"syncs search data"| node_google
node_user -.->|"plans social content"| node_social
node_user -.->|"manages customer records"| node_crm
node_user -.->|"signs in"| node_auth
node_auth -.->|"checks accounts"| node_user_store
node_user -.->|"administers system"| node_admin
node_user -.->|"uses API"| node_api

click node_boards "https://github.com/rafel1802/dgt-system/blob/main/app/Models/Board.php"
click node_cards "https://github.com/rafel1802/dgt-system/blob/main/app/Models/Card.php"
click node_card_actions "https://github.com/rafel1802/dgt-system/blob/main/app/Http/Controllers/Board/CardController.php"
click node_workflow "https://github.com/rafel1802/dgt-system/blob/main/app/Services/BoardWorkflowService.php"
click node_activity "https://github.com/rafel1802/dgt-system/blob/main/app/Models/ActivityLog.php"
click node_kpi_actions "https://github.com/rafel1802/dgt-system/blob/main/app/Http/Controllers/Kpi/KpiReviewController.php"
click node_kpi_records "https://github.com/rafel1802/dgt-system/tree/main/app/Models/Kpi"
click node_website_admin "https://github.com/rafel1802/dgt-system/blob/main/app/Http/Controllers/WebsiteController.php"
click node_website_records "https://github.com/rafel1802/dgt-system/blob/main/app/Models/Website.php"
click node_gsc_actions "https://github.com/rafel1802/dgt-system/blob/main/app/Http/Controllers/GoogleSearchConsoleController.php"
click node_gsc_services "https://github.com/rafel1802/dgt-system/tree/main/app/Services/GoogleSearchConsole"
click node_gsc_records "https://github.com/rafel1802/dgt-system/tree/main/app/Models/GoogleSearchConsole"
click node_social "https://github.com/rafel1802/dgt-system/tree/main/app/Http/Controllers/SocialMedia"
click node_crm "https://github.com/rafel1802/dgt-system/blob/main/app/Models/Customer.php"
click node_auth "https://github.com/rafel1802/dgt-system/blob/main/app/Services/AuthService.php"
click node_admin "https://github.com/rafel1802/dgt-system/tree/main/app/Http/Controllers/Admin"
click node_api "https://github.com/rafel1802/dgt-system/tree/main/app/Http/Controllers/Api"
click node_user_store "https://github.com/rafel1802/dgt-system/blob/main/app/Models/User.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_boards,node_cards,node_card_actions,node_workflow,node_activity toneBlue
class node_kpi_actions,node_kpi_records toneAmber
class node_website_admin,node_website_records,node_gsc_actions,node_gsc_services,node_gsc_records toneMint
class node_social,node_crm toneRose
class node_auth,node_admin,node_api,node_user_store,node_user,node_google toneIndigo
```

## Components

### Team Work Management

- [Workspaces & boards](https://github.com/rafel1802/dgt-system/blob/main/app/Models/Board.php): `app/Models/Board.php`
- [Cards & checklists](https://github.com/rafel1802/dgt-system/blob/main/app/Models/Card.php): `app/Models/Card.php`
- [Card operations](https://github.com/rafel1802/dgt-system/blob/main/app/Http/Controllers/Board/CardController.php): `app/Http/Controllers/Board/CardController.php`
- [Board workflow](https://github.com/rafel1802/dgt-system/blob/main/app/Services/BoardWorkflowService.php): `app/Services/BoardWorkflowService.php`
- [Activity history](https://github.com/rafel1802/dgt-system/blob/main/app/Models/ActivityLog.php): `app/Models/ActivityLog.php`

### Performance Management

- [KPI reviews](https://github.com/rafel1802/dgt-system/blob/main/app/Http/Controllers/Kpi/KpiReviewController.php): `app/Http/Controllers/Kpi/KpiReviewController.php`
- [KPI records](https://github.com/rafel1802/dgt-system/tree/main/app/Models/Kpi): `app/Models/Kpi`

### Websites & Search

- [Website management](https://github.com/rafel1802/dgt-system/blob/main/app/Http/Controllers/WebsiteController.php): `app/Http/Controllers/WebsiteController.php`
- [Website records](https://github.com/rafel1802/dgt-system/blob/main/app/Models/Website.php): `app/Models/Website.php`
- [Search Console](https://github.com/rafel1802/dgt-system/blob/main/app/Http/Controllers/GoogleSearchConsoleController.php): `app/Http/Controllers/GoogleSearchConsoleController.php`
- [Search services](https://github.com/rafel1802/dgt-system/tree/main/app/Services/GoogleSearchConsole): `app/Services/GoogleSearchConsole`
- [Search data](https://github.com/rafel1802/dgt-system/tree/main/app/Models/GoogleSearchConsole): `app/Models/GoogleSearchConsole`

### CRM & Social Media

- [Social planning](https://github.com/rafel1802/dgt-system/tree/main/app/Http/Controllers/SocialMedia): `app/Http/Controllers/SocialMedia`
- [CRM operations](https://github.com/rafel1802/dgt-system/blob/main/app/Models/Customer.php): `app/Models/Customer.php`

### Application Platform

- [Authentication](https://github.com/rafel1802/dgt-system/blob/main/app/Services/AuthService.php): `app/Services/AuthService.php`
- [Administration](https://github.com/rafel1802/dgt-system/tree/main/app/Http/Controllers/Admin): `app/Http/Controllers/Admin`
- [API endpoints](https://github.com/rafel1802/dgt-system/tree/main/app/Http/Controllers/Api): `app/Http/Controllers/Api`
- [User accounts](https://github.com/rafel1802/dgt-system/blob/main/app/Models/User.php): `app/Models/User.php`

### Other components

- **Team member**
- **Google Search Console**

## Connections

- Team member → Card operations: manages cards
- Card operations → Cards & checklists: updates (evidence: `app/Http/Controllers/Board/CardController.php`)
- Card operations → Board workflow: delegates to (evidence: `app/Http/Controllers/Board/CardController.php`)
- Cards & checklists → Workspaces & boards: belongs to (evidence: `app/Models/Card.php`)
- Workspaces & boards → Activity history: records activity
- Team member → KPI reviews: reviews performance
- KPI reviews → KPI records: creates review (evidence: `app/Http/Controllers/Kpi/KpiReviewController.php`)
- KPI reviews → KPI records: writes audit (evidence: `app/Http/Controllers/Kpi/KpiReviewController.php`)
- Team member → Website management: manages sites
- Website management → Website records: manages
- Team member → Search Console: views reports
- Search Console → Search services: requests sitemap data (evidence: `app/Http/Controllers/GoogleSearchConsoleController.php`)
- Search Console → Search services: requests analytics (evidence: `app/Http/Controllers/GoogleSearchConsoleController.php`)
- Search Console → Search data: reads and deletes (evidence: `app/Http/Controllers/GoogleSearchConsoleController.php`)
- Search services → Search data: uses search data (evidence: `app/Services/GoogleSearchConsole/GoogleSearchConsoleSitemapService.php`)
- Search services → Website records: uses site data (evidence: `app/Services/GoogleSearchConsole/GoogleSearchConsoleSitemapService.php`)
- Search Console → Google Search Console: syncs search data
- Team member → Social planning: plans social content
- Team member → CRM operations: manages customer records
- Team member → Authentication: signs in
- Authentication → User accounts: checks accounts (evidence: `app/Services/AuthService.php`)
- Team member → Administration: administers system
- Team member → API endpoints: uses API
