# ahmedhelllalll/alidebo architecture

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

- Interactive diagram: https://gitdiagram.com/ahmedhelllalll/alidebo
- Repository: https://github.com/ahmedhelllalll/alidebo

## Overview

Alidebo appears to be a multilingual business directory and marketplace: people browse business listings, while owners and administrators create, maintain, and moderate business profiles. The graph highlights directory browsing, profile management, bulk import, and public reviews, alongside major product areas visible in the source tree such as products, leads, chat, and SEO. Source excerpts establish several service and model calls; relationships for unsampled areas are omitted or marked unverified rather than inferred as confirmed flows.

Main entry points: [`app/Models/BusinessProfile.php`](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Models/BusinessProfile.php) (Business profiles), [`app/Services/BusinessProfileService.php`](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Services/BusinessProfileService.php) (Profile service), [`app/Http/Controllers/DirectoryController.php`](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Http/Controllers/DirectoryController.php) (Browse directory), [`app/Http/Controllers/User/BusinessProfileController.php`](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Http/Controllers/User/BusinessProfileController.php) (Owner profile management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_directory["Directory browsing"]
  node_directory["Browse directory"]
end

subgraph group_profiles["Business profiles"]
  node_business[("Business profiles")]
  node_categories[("Categories<br/>[Category.php]")]
  node_locations[("City and country<br/>[City.php]")]
  node_profile_edit["Owner profile management"]
  node_profile_service["Profile service"]
  node_media[("Business media<br/>[BusinessMedia.php]")]
end

subgraph group_operations["Admin operations"]
  node_profile_import["Bulk profile import"]
  node_admin_business["Admin business moderation"]
end

subgraph group_engagement["Marketplace engagement"]
  node_reviews["Public reviews"]
  node_review_data[("Review records<br/>[Review.php]")]
  node_products["Products"]
  node_leads["Business leads<br/>[LeadController.php]"]
  node_chat["AI chatbot<br/>[AiChatService.php]"]
end

subgraph group_platform["Shared platform"]
  node_user[("User accounts<br/>[User.php]")]
  node_seo["SEO and indexing"]
  node_blog["Blog publishing<br/>[BlogController.php]"]
end

node_visitor(("Directory visitor"))
node_owner(("Business owner"))
node_admin(("Administrator"))

node_visitor -.->|"browses"| node_directory
node_directory -->|"queries"| node_business
node_directory -->|"queries"| node_categories
node_directory -->|"queries"| node_locations
node_owner -.->|"manages"| node_profile_edit
node_profile_edit -->|"reads and updates"| node_business
node_profile_edit -->|"delegates"| node_profile_service
node_profile_edit -.->|"records views"| node_media
node_profile_service -->|"creates and updates"| node_business
node_profile_service -->|"creates media"| node_media
node_profile_service -.->|"queues optimization"| node_products
node_admin -.->|"moderates"| node_admin_business
node_admin_business -->|"queries and updates"| node_business
node_admin_business -->|"delegates profile work"| node_profile_service
node_admin_business -->|"runs import"| node_profile_import
node_profile_import -->|"creates profiles"| node_business
node_profile_import -->|"imports media"| node_media
node_reviews -->|"finds business"| node_business
node_reviews -->|"checks and creates"| node_review_data
node_owner -.->|"manages products"| node_products
node_owner -.->|"handles leads"| node_leads
node_visitor -.->|"asks questions"| node_chat
node_business -.->|"indexed by"| node_seo
node_visitor -.->|"reads posts"| node_blog

click node_directory "https://github.com/ahmedhelllalll/alidebo/blob/main/app/Http/Controllers/DirectoryController.php"
click node_business "https://github.com/ahmedhelllalll/alidebo/blob/main/app/Models/BusinessProfile.php"
click node_categories "https://github.com/ahmedhelllalll/alidebo/blob/main/app/Models/Category.php"
click node_locations "https://github.com/ahmedhelllalll/alidebo/blob/main/app/Models/City.php"
click node_profile_edit "https://github.com/ahmedhelllalll/alidebo/blob/main/app/Http/Controllers/User/BusinessProfileController.php"
click node_profile_service "https://github.com/ahmedhelllalll/alidebo/blob/main/app/Services/BusinessProfileService.php"
click node_media "https://github.com/ahmedhelllalll/alidebo/blob/main/app/Models/BusinessMedia.php"
click node_profile_import "https://github.com/ahmedhelllalll/alidebo/blob/main/app/Imports/BusinessProfilesImport.php"
click node_admin_business "https://github.com/ahmedhelllalll/alidebo/blob/main/app/Http/Controllers/Admin/BusinessController.php"
click node_user "https://github.com/ahmedhelllalll/alidebo/blob/main/app/Models/User.php"
click node_reviews "https://github.com/ahmedhelllalll/alidebo/blob/main/app/Http/Controllers/PublicReviewController.php"
click node_review_data "https://github.com/ahmedhelllalll/alidebo/blob/main/app/Models/Review.php"
click node_products "https://github.com/ahmedhelllalll/alidebo/blob/main/app/Http/Controllers/User/ProductController.php"
click node_leads "https://github.com/ahmedhelllalll/alidebo/blob/main/app/Http/Controllers/User/LeadController.php"
click node_chat "https://github.com/ahmedhelllalll/alidebo/blob/main/app/Services/AiChatService.php"
click node_seo "https://github.com/ahmedhelllalll/alidebo/blob/main/app/Services/GoogleIndexingService.php"
click node_blog "https://github.com/ahmedhelllalll/alidebo/blob/main/app/Http/Controllers/BlogController.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_directory toneBlue
class node_business,node_categories,node_locations,node_profile_edit,node_profile_service,node_media toneAmber
class node_profile_import,node_admin_business toneMint
class node_reviews,node_review_data,node_products,node_leads,node_chat toneRose
class node_user,node_seo,node_blog,node_visitor,node_owner,node_admin toneIndigo
```

## Components

### Directory browsing

- [Browse directory](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Http/Controllers/DirectoryController.php): `app/Http/Controllers/DirectoryController.php`

### Business profiles

- [Business profiles](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Models/BusinessProfile.php): `app/Models/BusinessProfile.php`
- [Categories](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Models/Category.php): `app/Models/Category.php`
- [City and country](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Models/City.php): `app/Models/City.php`
- [Owner profile management](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Http/Controllers/User/BusinessProfileController.php): `app/Http/Controllers/User/BusinessProfileController.php`
- [Profile service](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Services/BusinessProfileService.php): `app/Services/BusinessProfileService.php`
- [Business media](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Models/BusinessMedia.php): `app/Models/BusinessMedia.php`

### Admin operations

- [Bulk profile import](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Imports/BusinessProfilesImport.php): `app/Imports/BusinessProfilesImport.php`
- [Admin business moderation](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Http/Controllers/Admin/BusinessController.php): `app/Http/Controllers/Admin/BusinessController.php`

### Marketplace engagement

- [Public reviews](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Http/Controllers/PublicReviewController.php): `app/Http/Controllers/PublicReviewController.php`
- [Review records](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Models/Review.php): `app/Models/Review.php`
- [Products](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Http/Controllers/User/ProductController.php): `app/Http/Controllers/User/ProductController.php`
- [Business leads](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Http/Controllers/User/LeadController.php): `app/Http/Controllers/User/LeadController.php`
- [AI chatbot](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Services/AiChatService.php): `app/Services/AiChatService.php`

### Shared platform

- [User accounts](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Models/User.php): `app/Models/User.php`
- [SEO and indexing](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Services/GoogleIndexingService.php): `app/Services/GoogleIndexingService.php`
- [Blog publishing](https://github.com/ahmedhelllalll/alidebo/blob/main/app/Http/Controllers/BlogController.php): `app/Http/Controllers/BlogController.php`

### Other components

- **Directory visitor**
- **Business owner**
- **Administrator**

## Connections

- Directory visitor → Browse directory: browses
- Browse directory → Business profiles: queries (evidence: `app/Http/Controllers/DirectoryController.php`)
- Browse directory → Categories: queries (evidence: `app/Http/Controllers/DirectoryController.php`)
- Browse directory → City and country: queries (evidence: `app/Http/Controllers/DirectoryController.php`)
- Business owner → Owner profile management: manages
- Owner profile management → Business profiles: reads and updates (evidence: `app/Http/Controllers/User/BusinessProfileController.php`)
- Owner profile management → Profile service: delegates (evidence: `app/Http/Controllers/User/BusinessProfileController.php`)
- Owner profile management → Business media: records views (evidence: `app/Http/Controllers/User/BusinessProfileController.php`)
- Profile service → Business profiles: creates and updates (evidence: `app/Services/BusinessProfileService.php`)
- Profile service → Business media: creates media (evidence: `app/Services/BusinessProfileService.php`)
- Profile service → Products: queues optimization
- Administrator → Admin business moderation: moderates
- Admin business moderation → Business profiles: queries and updates (evidence: `app/Http/Controllers/Admin/BusinessController.php`)
- Admin business moderation → Profile service: delegates profile work (evidence: `app/Http/Controllers/Admin/BusinessController.php`)
- Admin business moderation → Bulk profile import: runs import (evidence: `app/Http/Controllers/Admin/BusinessController.php`)
- Bulk profile import → Business profiles: creates profiles (evidence: `app/Imports/BusinessProfilesImport.php`)
- Bulk profile import → Business media: imports media (evidence: `app/Imports/BusinessProfilesImport.php`)
- Public reviews → Business profiles: finds business (evidence: `app/Http/Controllers/PublicReviewController.php`)
- Public reviews → Review records: checks and creates (evidence: `app/Http/Controllers/PublicReviewController.php`)
- Business owner → Products: manages products
- Business owner → Business leads: handles leads
- Directory visitor → AI chatbot: asks questions
- Business profiles → SEO and indexing: indexed by
- Directory visitor → Blog publishing: reads posts
