# ahmadmuzayyin/web-profil-sekolah architecture

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

- Interactive diagram: https://gitdiagram.com/ahmadmuzayyin/web-profil-sekolah
- Repository: https://github.com/ahmadmuzayyin/web-profil-sekolah

## Overview

This Laravel application is a school website with public pages and an authenticated administration area. Visitors browse school information, academics, facilities, galleries, and published news; administrators manage site content and settings, while visitors can submit contact messages. The graph highlights the documented public and admin routes, sampled controller-to-model relationships, and the main content domains. Some controllers and views were not excerpted, so their internal behavior is summarized conservatively; dashed links mark that uncertainty.

Main entry points: [`routes/web.php`](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/routes/web.php) (Web routes), [`app/Http/Controllers/Admin/DashboardController.php`](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/Admin/DashboardController.php) (Admin dashboard), [`app/Http/Controllers/HomeController.php`](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/HomeController.php) (Home page), [`app/Http/Controllers/Admin`](https://github.com/ahmadmuzayyin/web-profil-sekolah/tree/main/app/Http/Controllers/Admin) (Content management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry"]
  node_web_routes["Web routes<br/>[web.php]"]
end

subgraph group_public["Public website"]
  node_home["Home page<br/>[HomeController.php]"]
  node_profile["School profile"]
  node_academic["Academic pages"]
  node_facility["Facilities"]
  node_gallery["Gallery"]
  node_news["News pages<br/>[PostController.php]"]
  node_contact["Contact form"]
end

subgraph group_admin["Administration"]
  node_auth["Login and logout<br/>[AuthController.php]"]
  node_dashboard["Admin dashboard"]
  node_admin_cms["Content management"]
  node_admin_school["School settings"]
  node_admin_settings["Site settings"]
  node_admin_users["User management<br/>[UserController.php]"]
end

subgraph group_content["Content data"]
  node_posts[("News posts<br/>[Post.php]")]
  node_categories[("Categories<br/>[Category.php]")]
  node_school_info[("School information<br/>[SchoolInfo.php]")]
  node_teachers[("Teachers<br/>[Teacher.php]")]
  node_extracurriculars[("Extracurriculars")]
  node_facilities[("Facilities data<br/>[Facility.php]")]
  node_galleries[("Gallery items<br/>[Gallery.php]")]
  node_achievements[("Achievements<br/>[Achievement.php]")]
  node_contacts[("Contact messages<br/>[Contact.php]")]
  node_settings[("Settings<br/>[Setting.php]")]
end

node_visitor(("Visitor"))
node_admin_user(("Admin user"))

node_visitor -->|"requests pages"| node_web_routes
node_web_routes -->|"routes to"| node_home
node_web_routes -->|"routes to"| node_profile
node_web_routes -->|"routes to"| node_academic
node_web_routes -->|"routes to"| node_facility
node_web_routes -->|"routes to"| node_gallery
node_web_routes -->|"routes to"| node_news
node_web_routes -->|"routes to"| node_contact
node_web_routes -->|"routes to"| node_auth
node_admin_user -->|"requests admin"| node_web_routes
node_web_routes -->|"routes to"| node_dashboard
node_web_routes -->|"routes to"| node_admin_cms
node_web_routes -->|"routes to"| node_admin_school
node_web_routes -->|"routes to"| node_admin_settings
node_web_routes -->|"routes to"| node_admin_users
node_home -->|"reads"| node_posts
node_home -->|"reads"| node_galleries
node_home -->|"reads"| node_achievements
node_home -->|"reads"| node_school_info
node_profile -->|"reads"| node_school_info
node_profile -->|"reads"| node_teachers
node_academic -->|"reads"| node_school_info
node_academic -->|"reads"| node_extracurriculars
node_news -->|"reads and updates"| node_posts
node_news -->|"reads"| node_categories
node_contact -->|"stores messages"| node_contacts
node_dashboard -->|"reads"| node_posts
node_dashboard -->|"reads"| node_contacts
node_dashboard -->|"reads"| node_galleries
node_dashboard -->|"reads"| node_teachers
node_dashboard -->|"reads"| node_achievements
node_admin_cms -->|"manages"| node_posts
node_admin_cms -->|"manages"| node_categories
node_admin_cms -->|"manages"| node_achievements
node_admin_school -->|"updates"| node_school_info
node_admin_settings -->|"updates"| node_settings
node_facility -.->|"reads"| node_facilities
node_gallery -.->|"reads"| node_galleries
node_auth -->|"authenticates"| node_admin_user

click node_web_routes "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/routes/web.php"
click node_home "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/HomeController.php"
click node_profile "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/ProfileController.php"
click node_academic "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/AcademicController.php"
click node_facility "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/FacilityController.php"
click node_gallery "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/GalleryController.php"
click node_news "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/PostController.php"
click node_contact "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/ContactController.php"
click node_auth "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/Auth/AuthController.php"
click node_dashboard "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/Admin/DashboardController.php"
click node_admin_cms "https://github.com/ahmadmuzayyin/web-profil-sekolah/tree/main/app/Http/Controllers/Admin"
click node_admin_school "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/Admin/SchoolInfoController.php"
click node_admin_settings "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/Admin/SettingController.php"
click node_admin_users "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/Admin/UserController.php"
click node_posts "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/Post.php"
click node_categories "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/Category.php"
click node_school_info "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/SchoolInfo.php"
click node_teachers "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/Teacher.php"
click node_extracurriculars "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/Extracurricular.php"
click node_facilities "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/Facility.php"
click node_galleries "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/Gallery.php"
click node_achievements "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/Achievement.php"
click node_contacts "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/Contact.php"
click node_settings "https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/Setting.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_web_routes,node_admin_user toneBlue
class node_home,node_profile,node_academic,node_facility,node_gallery,node_news,node_contact toneAmber
class node_auth,node_dashboard,node_admin_cms,node_admin_school,node_admin_settings,node_admin_users toneMint
class node_posts,node_categories,node_school_info,node_teachers,node_extracurriculars,node_facilities,node_galleries,node_achievements,node_contacts,node_settings toneRose
class node_visitor toneIndigo
```

## Components

### Web entry

- [Web routes](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/routes/web.php): `routes/web.php`

### Public website

- [Home page](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/HomeController.php): `app/Http/Controllers/HomeController.php`
- [School profile](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/ProfileController.php): `app/Http/Controllers/ProfileController.php`
- [Academic pages](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/AcademicController.php): `app/Http/Controllers/AcademicController.php`
- [Facilities](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/FacilityController.php): `app/Http/Controllers/FacilityController.php`
- [Gallery](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/GalleryController.php): `app/Http/Controllers/GalleryController.php`
- [News pages](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/PostController.php): `app/Http/Controllers/PostController.php`
- [Contact form](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/ContactController.php): `app/Http/Controllers/ContactController.php`

### Administration

- [Login and logout](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/Auth/AuthController.php): `app/Http/Controllers/Auth/AuthController.php`
- [Admin dashboard](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/Admin/DashboardController.php): `app/Http/Controllers/Admin/DashboardController.php`
- [Content management](https://github.com/ahmadmuzayyin/web-profil-sekolah/tree/main/app/Http/Controllers/Admin): `app/Http/Controllers/Admin`
- [School settings](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/Admin/SchoolInfoController.php): `app/Http/Controllers/Admin/SchoolInfoController.php`
- [Site settings](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/Admin/SettingController.php): `app/Http/Controllers/Admin/SettingController.php`
- [User management](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Http/Controllers/Admin/UserController.php): `app/Http/Controllers/Admin/UserController.php`

### Content data

- [News posts](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/Post.php): `app/Models/Post.php`
- [Categories](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/Category.php): `app/Models/Category.php`
- [School information](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/SchoolInfo.php): `app/Models/SchoolInfo.php`
- [Teachers](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/Teacher.php): `app/Models/Teacher.php`
- [Extracurriculars](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/Extracurricular.php): `app/Models/Extracurricular.php`
- [Facilities data](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/Facility.php): `app/Models/Facility.php`
- [Gallery items](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/Gallery.php): `app/Models/Gallery.php`
- [Achievements](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/Achievement.php): `app/Models/Achievement.php`
- [Contact messages](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/Contact.php): `app/Models/Contact.php`
- [Settings](https://github.com/ahmadmuzayyin/web-profil-sekolah/blob/main/app/Models/Setting.php): `app/Models/Setting.php`

### Other components

- **Visitor**
- **Admin user**

## Connections

- Visitor → Web routes: requests pages (evidence: `routes/web.php`)
- Web routes → Home page: routes to (evidence: `routes/web.php`)
- Web routes → School profile: routes to (evidence: `routes/web.php`)
- Web routes → Academic pages: routes to (evidence: `routes/web.php`)
- Web routes → Facilities: routes to (evidence: `routes/web.php`)
- Web routes → Gallery: routes to (evidence: `routes/web.php`)
- Web routes → News pages: routes to (evidence: `routes/web.php`)
- Web routes → Contact form: routes to (evidence: `routes/web.php`)
- Web routes → Login and logout: routes to (evidence: `routes/web.php`)
- Admin user → Web routes: requests admin (evidence: `routes/web.php`)
- Web routes → Admin dashboard: routes to (evidence: `routes/web.php`)
- Web routes → Content management: routes to (evidence: `routes/web.php`)
- Web routes → School settings: routes to (evidence: `routes/web.php`)
- Web routes → Site settings: routes to (evidence: `routes/web.php`)
- Web routes → User management: routes to (evidence: `routes/web.php`)
- Home page → News posts: reads (evidence: `app/Http/Controllers/HomeController.php`)
- Home page → Gallery items: reads (evidence: `app/Http/Controllers/HomeController.php`)
- Home page → Achievements: reads (evidence: `app/Http/Controllers/HomeController.php`)
- Home page → School information: reads (evidence: `app/Http/Controllers/HomeController.php`)
- School profile → School information: reads (evidence: `app/Http/Controllers/ProfileController.php`)
- School profile → Teachers: reads (evidence: `app/Http/Controllers/ProfileController.php`)
- Academic pages → School information: reads (evidence: `app/Http/Controllers/AcademicController.php`)
- Academic pages → Extracurriculars: reads (evidence: `app/Http/Controllers/AcademicController.php`)
- News pages → News posts: reads and updates (evidence: `app/Http/Controllers/PostController.php`)
- News pages → Categories: reads (evidence: `app/Http/Controllers/PostController.php`)
- Contact form → Contact messages: stores messages (evidence: `app/Http/Controllers/ContactController.php`)
- Admin dashboard → News posts: reads (evidence: `app/Http/Controllers/Admin/DashboardController.php`)
- Admin dashboard → Contact messages: reads (evidence: `app/Http/Controllers/Admin/DashboardController.php`)
- Admin dashboard → Gallery items: reads (evidence: `app/Http/Controllers/Admin/DashboardController.php`)
- Admin dashboard → Teachers: reads (evidence: `app/Http/Controllers/Admin/DashboardController.php`)
- Admin dashboard → Achievements: reads (evidence: `app/Http/Controllers/Admin/DashboardController.php`)
- Content management → News posts: manages (evidence: `app/Http/Controllers/Admin/PostController.php`)
- Content management → Categories: manages (evidence: `app/Http/Controllers/Admin/PostController.php`)
- Content management → Achievements: manages (evidence: `app/Http/Controllers/Admin/AchievementController.php`)
- School settings → School information: updates (evidence: `app/Http/Controllers/Admin/SchoolInfoController.php`)
- Site settings → Settings: updates (evidence: `app/Http/Controllers/Admin/SettingController.php`)
- Facilities → Facilities data: reads
- Gallery → Gallery items: reads
- Login and logout → Admin user: authenticates (evidence: `app/Http/Controllers/Auth/AuthController.php`)
