# laminalfalah/sistem-informasi-bengkel architecture

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

- Interactive diagram: https://gitdiagram.com/laminalfalah/sistem-informasi-bengkel
- Repository: https://github.com/laminalfalah/sistem-informasi-bengkel

## Overview

Sistem Informasi Bengkel is a PHP/jQuery workshop-management application backed by MySQL. Users access a public home and login, then use the dashboard to manage equipment and spare parts, record borrowing and returns, handle purchasing and sales, and view reports; shopping and cart support public product sales. The sampled code confirms the shared dashboard layout, database setup, and a broad data endpoint. Several domain routes are unsampled, so their links are shown only where the README or excerpts support them; dashed links mark inferred browser/API interactions.

Main entry points: [`resources/backend/dashboard.php`](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/dashboard.php) (Dashboard Router), [`resources/master/header.php`](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/master/header.php) (Shared Header), [`resources/app/fetch.php`](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/app/fetch.php) (Data Endpoint), [`config/database.php`](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/config/database.php) (MySQL Connection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web Experience"]
  node_home["Public Home<br/>[home.php]"]
  node_login["Login Form<br/>[auth.php]"]
  node_dashboard["Dashboard Router<br/>[dashboard.php]"]
  node_navigation["Dashboard Navigation<br/>[navigation.php]"]
  node_header["Shared Header<br/>[header.php]"]
  node_footer["Shared Footer<br/>[footer.php]"]
  node_modal["Management Forms<br/>[modal.php]"]
  node_accessdenied["Access Denied View<br/>[403.php]"]
  node_notfound["Not Found View<br/>[404.php]"]
end

subgraph group_operations["Workshop Operations"]
  node_inventory["Equipment and Parts<br/>[dashboard.php]"]
  node_borrowing["Borrowing<br/>[dashboard.php]"]
  node_returns["Returns<br/>[dashboard.php]"]
end

subgraph group_commerce["Purchasing and Sales"]
  node_procurement["Procurement<br/>[dashboard.php]"]
  node_purchasing["Purchasing<br/>[dashboard.php]"]
  node_sales["Sales<br/>[dashboard.php]"]
  node_shopping["Online Shopping<br/>[shopping.php]"]
  node_cart["Shopping Cart<br/>[cart.php]"]
end

subgraph group_platform["Data and Shared Services"]
  node_reports["Operational Reports<br/>[download.php]"]
  node_dataapi["Data Endpoint<br/>[fetch.php]"]
  node_config["Application Config<br/>[config.php]"]
  node_database["MySQL Connection<br/>[database.php]"]
  node_path["Path Resolver<br/>[path.php]"]
end

node_visitor(("User"))
node_mysql[("MySQL")]

node_visitor -.->|"opens"| node_home
node_visitor -.->|"signs in"| node_login
node_visitor -.->|"uses"| node_dashboard
node_dashboard -->|"includes"| node_header
node_dashboard -->|"includes"| node_footer
node_header -->|"includes"| node_navigation
node_footer -->|"includes"| node_modal
node_dashboard -->|"shows"| node_accessdenied
node_dashboard -->|"shows"| node_notfound
node_dashboard -->|"includes"| node_shopping
node_dashboard -->|"includes"| node_cart
node_visitor -.->|"requests data"| node_dataapi
node_dataapi -->|"queries"| node_mysql
node_database -->|"loads settings"| node_config
node_database -->|"connects"| node_mysql
node_dataapi -->|"loads"| node_path
node_header -->|"loads"| node_path
node_dashboard -.->|"routes to"| node_inventory
node_dashboard -.->|"routes to"| node_borrowing
node_dashboard -.->|"routes to"| node_returns
node_dashboard -.->|"routes to"| node_procurement
node_dashboard -.->|"routes to"| node_purchasing
node_dashboard -.->|"routes to"| node_sales
node_dashboard -.->|"provides reports"| node_reports
node_shopping -.->|"offers cart"| node_cart

click node_home "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/frontend/home.php"
click node_login "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/frontend/auth.php"
click node_dashboard "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/dashboard.php"
click node_navigation "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/master/navigation.php"
click node_header "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/master/header.php"
click node_footer "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/master/footer.php"
click node_modal "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/app/modal.php"
click node_inventory "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/dashboard.php"
click node_borrowing "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/dashboard.php"
click node_returns "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/dashboard.php"
click node_procurement "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/dashboard.php"
click node_purchasing "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/dashboard.php"
click node_sales "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/dashboard.php"
click node_shopping "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/shopping.php"
click node_cart "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/cart.php"
click node_reports "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/app/download.php"
click node_dataapi "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/app/fetch.php"
click node_config "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/config/config.php"
click node_database "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/config/database.php"
click node_path "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/path.php"
click node_accessdenied "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/master/error/403.php"
click node_notfound "https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/master/error/404.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_home,node_login,node_dashboard,node_navigation,node_header,node_footer,node_modal,node_accessdenied,node_notfound,node_visitor toneBlue
class node_inventory,node_borrowing,node_returns,node_mysql toneAmber
class node_procurement,node_purchasing,node_sales,node_shopping,node_cart toneMint
class node_reports,node_dataapi,node_config,node_database,node_path toneRose
```

## Components

### Web Experience

- [Public Home](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/frontend/home.php): `resources/frontend/home.php`
- [Login Form](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/frontend/auth.php): `resources/frontend/auth.php`
- [Dashboard Router](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/dashboard.php): `resources/backend/dashboard.php`
- [Dashboard Navigation](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/master/navigation.php): `resources/master/navigation.php`
- [Shared Header](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/master/header.php): `resources/master/header.php`
- [Shared Footer](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/master/footer.php): `resources/master/footer.php`
- [Management Forms](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/app/modal.php): `resources/app/modal.php`
- [Access Denied View](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/master/error/403.php): `resources/master/error/403.php`
- [Not Found View](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/master/error/404.php): `resources/master/error/404.php`

### Workshop Operations

- [Equipment and Parts](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/dashboard.php): `resources/backend/dashboard.php`
- [Borrowing](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/dashboard.php): `resources/backend/dashboard.php`
- [Returns](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/dashboard.php): `resources/backend/dashboard.php`

### Purchasing and Sales

- [Procurement](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/dashboard.php): `resources/backend/dashboard.php`
- [Purchasing](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/dashboard.php): `resources/backend/dashboard.php`
- [Sales](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/dashboard.php): `resources/backend/dashboard.php`
- [Online Shopping](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/shopping.php): `resources/backend/shopping.php`
- [Shopping Cart](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/backend/cart.php): `resources/backend/cart.php`

### Data and Shared Services

- [Operational Reports](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/app/download.php): `resources/app/download.php`
- [Data Endpoint](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/app/fetch.php): `resources/app/fetch.php`
- [Application Config](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/config/config.php): `config/config.php`
- [MySQL Connection](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/config/database.php): `config/database.php`
- [Path Resolver](https://github.com/laminalfalah/sistem-informasi-bengkel/blob/master/resources/path.php): `resources/path.php`

### Other components

- **User**
- **MySQL**

## Connections

- User → Public Home: opens (evidence: `README.md`)
- User → Login Form: signs in (evidence: `README.md`)
- User → Dashboard Router: uses (evidence: `README.md`)
- Dashboard Router → Shared Header: includes (evidence: `resources/backend/dashboard.php`)
- Dashboard Router → Shared Footer: includes (evidence: `resources/backend/dashboard.php`)
- Shared Header → Dashboard Navigation: includes (evidence: `resources/master/header.php`)
- Shared Footer → Management Forms: includes (evidence: `resources/master/footer.php`)
- Dashboard Router → Access Denied View: shows (evidence: `resources/backend/dashboard.php`)
- Dashboard Router → Not Found View: shows (evidence: `resources/backend/dashboard.php`)
- Dashboard Router → Online Shopping: includes (evidence: `resources/backend/dashboard.php`)
- Dashboard Router → Shopping Cart: includes (evidence: `resources/backend/dashboard.php`)
- User → Data Endpoint: requests data
- Data Endpoint → MySQL: queries (evidence: `resources/app/fetch.php`)
- MySQL Connection → Application Config: loads settings (evidence: `config/database.php`)
- MySQL Connection → MySQL: connects (evidence: `config/database.php`)
- Data Endpoint → Path Resolver: loads (evidence: `resources/app/fetch.php`)
- Shared Header → Path Resolver: loads (evidence: `resources/master/header.php`)
- Dashboard Router → Equipment and Parts: routes to (evidence: `README.md`)
- Dashboard Router → Borrowing: routes to (evidence: `README.md`)
- Dashboard Router → Returns: routes to (evidence: `README.md`)
- Dashboard Router → Procurement: routes to (evidence: `README.md`)
- Dashboard Router → Purchasing: routes to (evidence: `README.md`)
- Dashboard Router → Sales: routes to (evidence: `README.md`)
- Dashboard Router → Operational Reports: provides reports (evidence: `README.md`)
- Online Shopping → Shopping Cart: offers cart
