# hamzaelgaafary-hub/el-gaafary-jobs architecture

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

- Interactive diagram: https://gitdiagram.com/hamzaelgaafary-hub/el-gaafary-jobs
- Repository: https://github.com/hamzaelgaafary-hub/el-gaafary-jobs

## Overview

El-Gaafary Jobs is a Laravel job-board platform with public seeker-facing pages and separate Filament administration and employer panels. The public workflow routes visitors to job browsing, search, registration/login, and job detail pages; authenticated employers can post jobs and manage them in their panel, while admins oversee jobs, employers, users, tags, and dashboard analytics. Localization and role middleware shape requests. The graph combines sampled controller/model relationships with capabilities and panel structure documented in the README; unsampled panel internals are represented at their existing directory paths.

Main entry points: [`routes/web.php`](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/routes/web.php) (Web routes), [`app/Models/Job.php`](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Models/Job.php) (Jobs and translations), [`app/Http/Controllers/SiteController.php`](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Http/Controllers/SiteController.php) (Site and directory), [`app/Filament/Resources`](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/tree/main/app/Filament/Resources) (Admin panel)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public job board"]
  node_routes["Web routes<br/>[web.php]"]
  node_jobs["Job browsing<br/>[JobController.php]"]
  node_search["Job search"]
  node_tag_browse["Tag browsing<br/>[TagController.php]"]
  node_site["Site and directory<br/>[SiteController.php]"]
  node_job_views["Job pages"]
  node_employer_views["Employer pages"]
  node_contact_mail["Contact email<br/>[ContactMessage.php]"]
end

subgraph group_identity["Accounts and access"]
  node_registration["Registration"]
  node_sessions["Login sessions"]
  node_user_model["User accounts<br/>[User.php]"]
  node_role_access["Role middleware<br/>[Checkrole.php]"]
end

subgraph group_domain["Recruitment domain"]
  node_job_model["Jobs and translations<br/>[Job.php]"]
  node_employer_model["Employer profiles<br/>[Employer.php]"]
  node_tag_model["Job tags<br/>[Tag.php]"]
end

subgraph group_panels["Filament operations"]
  node_admin_panel["Admin panel"]
  node_employer_panel["Employer panel"]
  node_panel_providers["Panel configuration"]
  node_analytics["Dashboard analytics"]
end

subgraph group_localization["Localization"]
  node_locale_middleware["Locale middleware<br/>[SetLocale.php]"]
  node_bootstrap["Middleware registration<br/>[app.php]"]
end

node_visitor(("Visitor / seeker"))
node_mail_service["Mail service"]
node_database[("Application database")]

node_visitor -->|"requests pages"| node_routes
node_routes -->|"routes browsing"| node_jobs
node_routes -->|"routes search"| node_search
node_routes -->|"routes tags"| node_tag_browse
node_routes -->|"routes site pages"| node_site
node_routes -->|"routes registration"| node_registration
node_routes -->|"routes login"| node_sessions
node_jobs -->|"queries jobs"| node_job_model
node_jobs -->|"loads tags"| node_tag_model
node_jobs -->|"renders pages"| node_job_views
node_search -->|"searches jobs"| node_job_model
node_search -->|"loads employers"| node_employer_model
node_tag_browse -->|"queries tags"| node_tag_model
node_site -->|"queries profiles"| node_employer_model
node_site -->|"queries seekers"| node_user_model
node_site -->|"counts jobs"| node_job_model
node_site -->|"renders directory"| node_employer_views
node_site -->|"sends message"| node_contact_mail
node_contact_mail -.->|"delivered by"| node_mail_service
node_registration -->|"creates account"| node_user_model
node_registration -->|"creates profile"| node_employer_model
node_sessions -->|"authenticates"| node_user_model
node_user_model -->|"relates profiles"| node_employer_model
node_job_model -->|"belongs to"| node_employer_model
node_job_model -->|"attaches tags"| node_tag_model
node_routes -->|"localizes routes"| node_locale_middleware
node_bootstrap -->|"registers alias"| node_locale_middleware
node_routes -.->|"role gate"| node_role_access
node_panel_providers -.->|"configures panel"| node_admin_panel
node_panel_providers -.->|"configures panel"| node_employer_panel
node_admin_panel -.->|"shows analytics"| node_analytics
node_employer_panel -.->|"manages listings"| node_job_model
node_admin_panel -.->|"manages users"| node_user_model
node_admin_panel -.->|"manages employers"| node_employer_model
node_admin_panel -.->|"manages jobs"| node_job_model
node_admin_panel -.->|"manages tags"| node_tag_model
node_job_model -.->|"persists records"| node_database
node_user_model -.->|"persists accounts"| node_database

click node_routes "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/routes/web.php"
click node_jobs "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Http/Controllers/JobController.php"
click node_search "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Http/Controllers/SearchController.php"
click node_tag_browse "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Http/Controllers/TagController.php"
click node_site "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Http/Controllers/SiteController.php"
click node_job_views "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/tree/main/resources/views/jobs"
click node_employer_views "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/tree/main/resources/views/employers"
click node_registration "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Http/Controllers/RegisteredUserController.php"
click node_sessions "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Http/Controllers/SessionController.php"
click node_user_model "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Models/User.php"
click node_role_access "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Http/Middleware/Checkrole.php"
click node_job_model "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Models/Job.php"
click node_employer_model "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Models/Employer.php"
click node_tag_model "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Models/Tag.php"
click node_admin_panel "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/tree/main/app/Filament/Resources"
click node_employer_panel "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/tree/main/app/Filament/Employer/Resources"
click node_panel_providers "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/tree/main/app/Providers/Filament"
click node_analytics "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/tree/main/app/Filament/Widgets"
click node_locale_middleware "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Http/Middleware/SetLocale.php"
click node_bootstrap "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/bootstrap/app.php"
click node_contact_mail "https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Mail/ContactMessage.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_routes,node_jobs,node_search,node_tag_browse,node_site,node_job_views,node_employer_views,node_contact_mail toneBlue
class node_registration,node_sessions,node_user_model,node_role_access,node_database toneAmber
class node_job_model,node_employer_model,node_tag_model toneMint
class node_admin_panel,node_employer_panel,node_panel_providers,node_analytics toneRose
class node_locale_middleware,node_bootstrap,node_visitor,node_mail_service toneIndigo
```

## Components

### Public job board

- [Web routes](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/routes/web.php): `routes/web.php`
- [Job browsing](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Http/Controllers/JobController.php): `app/Http/Controllers/JobController.php`
- [Job search](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Http/Controllers/SearchController.php): `app/Http/Controllers/SearchController.php`
- [Tag browsing](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Http/Controllers/TagController.php): `app/Http/Controllers/TagController.php`
- [Site and directory](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Http/Controllers/SiteController.php): `app/Http/Controllers/SiteController.php`
- [Job pages](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/tree/main/resources/views/jobs): `resources/views/jobs`
- [Employer pages](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/tree/main/resources/views/employers): `resources/views/employers`
- [Contact email](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Mail/ContactMessage.php): `app/Mail/ContactMessage.php`

### Accounts and access

- [Registration](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Http/Controllers/RegisteredUserController.php): `app/Http/Controllers/RegisteredUserController.php`
- [Login sessions](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Http/Controllers/SessionController.php): `app/Http/Controllers/SessionController.php`
- [User accounts](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Models/User.php): `app/Models/User.php`
- [Role middleware](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Http/Middleware/Checkrole.php): `app/Http/Middleware/Checkrole.php`

### Recruitment domain

- [Jobs and translations](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Models/Job.php): `app/Models/Job.php`
- [Employer profiles](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Models/Employer.php): `app/Models/Employer.php`
- [Job tags](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Models/Tag.php): `app/Models/Tag.php`

### Filament operations

- [Admin panel](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/tree/main/app/Filament/Resources): `app/Filament/Resources`
- [Employer panel](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/tree/main/app/Filament/Employer/Resources): `app/Filament/Employer/Resources`
- [Panel configuration](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/tree/main/app/Providers/Filament): `app/Providers/Filament`
- [Dashboard analytics](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/tree/main/app/Filament/Widgets): `app/Filament/Widgets`

### Localization

- [Locale middleware](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/app/Http/Middleware/SetLocale.php): `app/Http/Middleware/SetLocale.php`
- [Middleware registration](https://github.com/hamzaelgaafary-hub/el-gaafary-jobs/blob/main/bootstrap/app.php): `bootstrap/app.php`

### Other components

- **Visitor / seeker**
- **Mail service**
- **Application database**

## Connections

- Visitor / seeker → Web routes: requests pages (evidence: `routes/web.php`)
- Web routes → Job browsing: routes browsing (evidence: `routes/web.php`)
- Web routes → Job search: routes search (evidence: `routes/web.php`)
- Web routes → Tag browsing: routes tags (evidence: `routes/web.php`)
- Web routes → Site and directory: routes site pages (evidence: `routes/web.php`)
- Web routes → Registration: routes registration (evidence: `routes/web.php`)
- Web routes → Login sessions: routes login (evidence: `routes/web.php`)
- Job browsing → Jobs and translations: queries jobs (evidence: `app/Http/Controllers/JobController.php`)
- Job browsing → Job tags: loads tags (evidence: `app/Http/Controllers/JobController.php`)
- Job browsing → Job pages: renders pages (evidence: `app/Http/Controllers/JobController.php`)
- Job search → Jobs and translations: searches jobs (evidence: `app/Http/Controllers/SearchController.php`)
- Job search → Employer profiles: loads employers (evidence: `app/Http/Controllers/SearchController.php`)
- Tag browsing → Job tags: queries tags (evidence: `app/Http/Controllers/TagController.php`)
- Site and directory → Employer profiles: queries profiles (evidence: `app/Http/Controllers/SiteController.php`)
- Site and directory → User accounts: queries seekers (evidence: `app/Http/Controllers/SiteController.php`)
- Site and directory → Jobs and translations: counts jobs (evidence: `app/Http/Controllers/SiteController.php`)
- Site and directory → Employer pages: renders directory (evidence: `app/Http/Controllers/SiteController.php`)
- Site and directory → Contact email: sends message (evidence: `app/Http/Controllers/SiteController.php`)
- Contact email → Mail service: delivered by
- Registration → User accounts: creates account (evidence: `app/Http/Controllers/RegisteredUserController.php`)
- Registration → Employer profiles: creates profile (evidence: `app/Http/Controllers/RegisteredUserController.php`)
- Login sessions → User accounts: authenticates (evidence: `app/Http/Controllers/SessionController.php`)
- User accounts → Employer profiles: relates profiles (evidence: `app/Models/User.php`)
- Jobs and translations → Employer profiles: belongs to (evidence: `app/Models/Job.php`)
- Jobs and translations → Job tags: attaches tags (evidence: `app/Models/Job.php`)
- Web routes → Locale middleware: localizes routes (evidence: `routes/web.php`)
- Middleware registration → Locale middleware: registers alias (evidence: `bootstrap/app.php`)
- Web routes → Role middleware: role gate
- Panel configuration → Admin panel: configures panel
- Panel configuration → Employer panel: configures panel
- Admin panel → Dashboard analytics: shows analytics
- Employer panel → Jobs and translations: manages listings
- Admin panel → User accounts: manages users
- Admin panel → Employer profiles: manages employers
- Admin panel → Jobs and translations: manages jobs
- Admin panel → Job tags: manages tags
- Jobs and translations → Application database: persists records
- User accounts → Application database: persists accounts
