# shiroshoes/dmw_inventory_dashboard_website architecture

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

- Interactive diagram: https://gitdiagram.com/shiroshoes/dmw_inventory_dashboard_website
- Repository: https://github.com/shiroshoes/dmw_inventory_dashboard_website

## Overview

This PHP web application supports motorshop operations for Admin and Cashier roles. Users sign in, then use role-specific pages to record dated sales or inventory entries, review and amend activity, and inspect dashboard summaries; Admins also manage accounts. The README documents hashed-password authentication, role-based navigation, tutorials, and logout. Sampled source confirms session-based login, record entry and totals, dashboard queries, activity-log filtering, and record editing; several endpoint relationships are inferred only from filenames and are not drawn. The database is MySQL, accessed directly by PHP pages.

Main entry points: [`tropangmaselan-motorshop-main/php/login/login.php`](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/login/login.php) (Login), [`tropangmaselan-motorshop-main/php/Admin/Home/html/home.php`](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Admin/Home/html/home.php) (Admin Home), [`tropangmaselan-motorshop-main/php/Cashier/Home/html/home.php`](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Cashier/Home/html/home.php) (Cashier Home), [`tropangmaselan-motorshop-main/php/Admin/activitylog/activitylog.php`](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Admin/activitylog/activitylog.php) (Admin Activity Log)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and Guidance"]
  node_public_home["Public Home<br/>[home.php]"]
  node_login["Login<br/>[login.php]"]
  node_admin_home["Admin Home<br/>[home.php]"]
  node_cashier_home["Cashier Home<br/>[home.php]"]
  node_tutorial["Tutorial Pages<br/>[tutorial.php]"]
  node_logout["Logout<br/>[logout.php]"]
end

subgraph group_operations["Records and Activity"]
  node_admin_record["Admin Records<br/>[record.php]"]
  node_admin_save["Admin Record Save<br/>[save_records.php]"]
  node_cashier_record["Cashier Records<br/>[record.php]"]
  node_cashier_save["Cashier Record Save<br/>[save_records.php]"]
  node_admin_log["Admin Activity Log<br/>[activitylog.php]"]
  node_cashier_log["Cashier Activity Log<br/>[activitylog.php]"]
  node_admin_edit["Admin Record Editor<br/>[edit_record.php]"]
  node_cashier_edit["Cashier Record Editor<br/>[edit_record.php]"]
end

subgraph group_insights["Performance Insights"]
  node_admin_dashboard["Admin Dashboard<br/>[dashboard.php]"]
  node_cashier_dashboard["Cashier Dashboard<br/>[dashboard.php]"]
end

subgraph group_administration["Administration"]
  node_accounts["Account Management<br/>[staffactivity.php]"]
  node_account_save["Account Save<br/>[save_account.php]"]
end

node_admin(("Admin"))
node_cashier(("Cashier"))
node_public(("Visitor"))
node_mysql[("MySQL Database")]
node_chartjs["Chart.js"]

node_public -->|"opens"| node_public_home
node_admin -->|"signs in"| node_login
node_cashier -->|"signs in"| node_login
node_login -->|"checks credentials"| node_mysql
node_login -->|"routes Admin"| node_admin_home
node_login -->|"routes Cashier"| node_cashier_home
node_admin -->|"opens"| node_admin_home
node_cashier -->|"opens"| node_cashier_home
node_admin_home -.->|"links to"| node_tutorial
node_cashier_home -.->|"links to"| node_tutorial
node_admin -->|"enters records"| node_admin_record
node_cashier -->|"enters records"| node_cashier_record
node_admin_record -->|"submits entries"| node_admin_save
node_cashier_record -->|"submits entries"| node_cashier_save
node_admin_save -->|"writes records"| node_mysql
node_cashier_save -->|"writes records"| node_mysql
node_admin -->|"reviews activity"| node_admin_log
node_cashier -->|"reviews activity"| node_cashier_log
node_admin_log -->|"reads log"| node_mysql
node_cashier_log -->|"reads log"| node_mysql
node_admin_log -->|"opens editor"| node_admin_edit
node_cashier_log -->|"opens editor"| node_cashier_edit
node_admin_edit -->|"updates records"| node_mysql
node_cashier_edit -->|"updates records"| node_mysql
node_admin -->|"views insights"| node_admin_dashboard
node_cashier -->|"views insights"| node_cashier_dashboard
node_admin_dashboard -->|"queries summaries"| node_mysql
node_cashier_dashboard -->|"queries summaries"| node_mysql
node_admin_dashboard -->|"renders charts"| node_chartjs
node_cashier_dashboard -->|"renders charts"| node_chartjs
node_admin -->|"manages accounts"| node_accounts
node_accounts -->|"submits changes"| node_account_save
node_account_save -->|"writes accounts"| node_mysql
node_admin_home -->|"logs out"| node_logout
node_cashier_home -->|"logs out"| node_logout

click node_public_home "https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Home/html/home.php"
click node_login "https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/login/login.php"
click node_admin_home "https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Admin/Home/html/home.php"
click node_cashier_home "https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Cashier/Home/html/home.php"
click node_tutorial "https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/tutorial/tutorial.php"
click node_logout "https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/logout.php"
click node_admin_record "https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Admin/Record/record.php"
click node_admin_save "https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Admin/Record/save_records.php"
click node_cashier_record "https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Cashier/Record/record.php"
click node_cashier_save "https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Cashier/Record/save_records.php"
click node_admin_log "https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Admin/activitylog/activitylog.php"
click node_cashier_log "https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Cashier/activitylog/activitylog.php"
click node_admin_edit "https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Admin/activitylog/edit_record.php"
click node_cashier_edit "https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Cashier/activitylog/edit_record.php"
click node_admin_dashboard "https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Admin/dashboard/dashboard.php"
click node_cashier_dashboard "https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Cashier/dashboard/dashboard.php"
click node_accounts "https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Admin/addaccount/staffactivity.php"
click node_account_save "https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Admin/addaccount/save_account.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_public_home,node_login,node_admin_home,node_cashier_home,node_tutorial,node_logout toneBlue
class node_admin_record,node_admin_save,node_cashier_record,node_cashier_save,node_admin_log,node_cashier_log,node_admin_edit,node_cashier_edit,node_mysql toneAmber
class node_admin_dashboard,node_cashier_dashboard toneMint
class node_accounts,node_account_save toneRose
class node_admin,node_cashier,node_public,node_chartjs toneIndigo
```

## Components

### Access and Guidance

- [Public Home](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Home/html/home.php): `tropangmaselan-motorshop-main/php/Home/html/home.php`
- [Login](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/login/login.php): `tropangmaselan-motorshop-main/php/login/login.php`
- [Admin Home](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Admin/Home/html/home.php): `tropangmaselan-motorshop-main/php/Admin/Home/html/home.php`
- [Cashier Home](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Cashier/Home/html/home.php): `tropangmaselan-motorshop-main/php/Cashier/Home/html/home.php`
- [Tutorial Pages](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/tutorial/tutorial.php): `tropangmaselan-motorshop-main/php/tutorial/tutorial.php`
- [Logout](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/logout.php): `tropangmaselan-motorshop-main/php/logout.php`

### Records and Activity

- [Admin Records](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Admin/Record/record.php): `tropangmaselan-motorshop-main/php/Admin/Record/record.php`
- [Admin Record Save](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Admin/Record/save_records.php): `tropangmaselan-motorshop-main/php/Admin/Record/save_records.php`
- [Cashier Records](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Cashier/Record/record.php): `tropangmaselan-motorshop-main/php/Cashier/Record/record.php`
- [Cashier Record Save](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Cashier/Record/save_records.php): `tropangmaselan-motorshop-main/php/Cashier/Record/save_records.php`
- [Admin Activity Log](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Admin/activitylog/activitylog.php): `tropangmaselan-motorshop-main/php/Admin/activitylog/activitylog.php`
- [Cashier Activity Log](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Cashier/activitylog/activitylog.php): `tropangmaselan-motorshop-main/php/Cashier/activitylog/activitylog.php`
- [Admin Record Editor](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Admin/activitylog/edit_record.php): `tropangmaselan-motorshop-main/php/Admin/activitylog/edit_record.php`
- [Cashier Record Editor](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Cashier/activitylog/edit_record.php): `tropangmaselan-motorshop-main/php/Cashier/activitylog/edit_record.php`

### Performance Insights

- [Admin Dashboard](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Admin/dashboard/dashboard.php): `tropangmaselan-motorshop-main/php/Admin/dashboard/dashboard.php`
- [Cashier Dashboard](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Cashier/dashboard/dashboard.php): `tropangmaselan-motorshop-main/php/Cashier/dashboard/dashboard.php`

### Administration

- [Account Management](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Admin/addaccount/staffactivity.php): `tropangmaselan-motorshop-main/php/Admin/addaccount/staffactivity.php`
- [Account Save](https://github.com/shiroshoes/dmw_inventory_dashboard_website/blob/main/tropangmaselan-motorshop-main/php/Admin/addaccount/save_account.php): `tropangmaselan-motorshop-main/php/Admin/addaccount/save_account.php`

### Other components

- **Admin**
- **Cashier**
- **Visitor**
- **MySQL Database**
- **Chart.js**

## Connections

- Visitor → Public Home: opens
- Admin → Login: signs in
- Cashier → Login: signs in
- Login → MySQL Database: checks credentials
- Login → Admin Home: routes Admin
- Login → Cashier Home: routes Cashier
- Admin → Admin Home: opens
- Cashier → Cashier Home: opens
- Admin Home → Tutorial Pages: links to
- Cashier Home → Tutorial Pages: links to
- Admin → Admin Records: enters records
- Cashier → Cashier Records: enters records
- Admin Records → Admin Record Save: submits entries
- Cashier Records → Cashier Record Save: submits entries
- Admin Record Save → MySQL Database: writes records
- Cashier Record Save → MySQL Database: writes records
- Admin → Admin Activity Log: reviews activity
- Cashier → Cashier Activity Log: reviews activity
- Admin Activity Log → MySQL Database: reads log
- Cashier Activity Log → MySQL Database: reads log
- Admin Activity Log → Admin Record Editor: opens editor
- Cashier Activity Log → Cashier Record Editor: opens editor
- Admin Record Editor → MySQL Database: updates records
- Cashier Record Editor → MySQL Database: updates records
- Admin → Admin Dashboard: views insights
- Cashier → Cashier Dashboard: views insights
- Admin Dashboard → MySQL Database: queries summaries
- Cashier Dashboard → MySQL Database: queries summaries
- Admin Dashboard → Chart.js: renders charts
- Cashier Dashboard → Chart.js: renders charts
- Admin → Account Management: manages accounts
- Account Management → Account Save: submits changes
- Account Save → MySQL Database: writes accounts
- Admin Home → Logout: logs out
- Cashier Home → Logout: logs out
