# kunlex23/tollycd architecture

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

- Interactive diagram: https://gitdiagram.com/kunlex23/tollycd
- Repository: https://github.com/kunlex23/tollycd

## Overview

Tolly Classic Logistics is a role-based logistics operations application with admin, inventory, data-entry, and accounting areas. Users enter through login, then work with shipment/waybill operations, inventory and partners, or financial records and reports; administrators also manage users, captains, and pricing. The sampled dashboards show role-based routing and live metric requests, while the file tree and SOURCE INDEX establish additional domain screens. The source excerpts are incomplete, so links between unsampled workflow stages are omitted rather than inferred.

Main entry points: [`config.php`](https://github.com/kunlex23/tollycd/blob/main/config.php) (MySQL database), [`titesi/index.php`](https://github.com/kunlex23/tollycd/blob/main/titesi/index.php) (Data-entry dashboard), [`okojooja/index.php`](https://github.com/kunlex23/tollycd/blob/main/okojooja/index.php) (Inventory dashboard), [`login.php`](https://github.com/kunlex23/tollycd/blob/main/login.php) (Login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and Admin"]
  node_login["Login<br/>[login.php]"]
  node_admin["Admin dashboard<br/>[index.php]"]
  node_admin_metrics["Admin metrics<br/>[server.php]"]
  node_user_admin["User administration<br/>[newUser.php]"]
  node_pricing["Shipment pricing<br/>[ninan.php]"]
end

subgraph group_shipments["Shipment Operations"]
  node_data_dashboard["Data-entry dashboard<br/>[index.php]"]
  node_ship_entry["Shipment entry<br/>[gbigbeTitun.php]"]
  node_ship_history["Shipment history<br/>[awe.php]"]
  node_ship_reports["Shipment reports<br/>[iroyin.php]"]
  node_ship_records["Shipment records<br/>[records.php]"]
end

subgraph group_inventory["Inventory Operations"]
  node_inventory_dashboard["Inventory dashboard<br/>[index.php]"]
  node_waybill_entry["Waybill entry<br/>[gbigbeTitun2.php]"]
  node_product_catalog["Product catalog<br/>[awe.php]"]
  node_inventory_records["Waybill records<br/>[records.php]"]
end

subgraph group_finance["Accounting and Reports"]
  node_account_dashboard["Account dashboard<br/>[index.php]"]
  node_accounting_records["Accounting records<br/>[records.php]"]
  node_revenue_reports["Revenue reports<br/>[iroyinowo.php]"]
  node_shipment_finance["Shipment finance<br/>[iranse.php]"]
  node_payments["Payment handling<br/>[wiwoIro.php]"]
end

node_user(("Staff user"))
node_database[("MySQL database<br/>[config.php]")]

node_user -->|"signs in"| node_login
node_login -->|"checks credentials"| node_database
node_user -.->|"opens role area"| node_admin
node_user -.->|"opens role area"| node_data_dashboard
node_user -.->|"opens role area"| node_inventory_dashboard
node_user -.->|"opens role area"| node_account_dashboard
node_admin -->|"requests metrics"| node_admin_metrics
node_admin_metrics -->|"queries totals"| node_database
node_data_dashboard -->|"reads shipments"| node_ship_records
node_data_dashboard -->|"queries shipments"| node_database
node_inventory_dashboard -->|"links to"| node_waybill_entry
node_inventory_dashboard -->|"links to"| node_inventory_records
node_waybill_entry -->|"reads agents"| node_database
node_account_dashboard -.->|"loads dashboard"| node_database
node_user_admin -.->|"manages users"| node_database
node_pricing -.->|"stores pricing"| node_database
node_ship_entry -.->|"records shipments"| node_database
node_ship_history -.->|"reads history"| node_database
node_ship_reports -.->|"queries reports"| node_database
node_ship_records -.->|"reads records"| node_database
node_product_catalog -.->|"queries products"| node_database
node_inventory_records -.->|"reads waybills"| node_database
node_accounting_records -.->|"queries accounts"| node_database
node_revenue_reports -.->|"queries revenue"| node_database
node_shipment_finance -.->|"queries shipments"| node_database
node_payments -.->|"records payments"| node_database

click node_login "https://github.com/kunlex23/tollycd/blob/main/login.php"
click node_admin "https://github.com/kunlex23/tollycd/blob/main/abojuto/index.php"
click node_admin_metrics "https://github.com/kunlex23/tollycd/blob/main/abojuto/server.php"
click node_user_admin "https://github.com/kunlex23/tollycd/blob/main/abojuto/newUser.php"
click node_pricing "https://github.com/kunlex23/tollycd/blob/main/abojuto/ninan.php"
click node_data_dashboard "https://github.com/kunlex23/tollycd/blob/main/titesi/index.php"
click node_ship_entry "https://github.com/kunlex23/tollycd/blob/main/titesi/gbigbeTitun.php"
click node_ship_history "https://github.com/kunlex23/tollycd/blob/main/titesi/awe.php"
click node_ship_reports "https://github.com/kunlex23/tollycd/blob/main/titesi/iroyin.php"
click node_ship_records "https://github.com/kunlex23/tollycd/blob/main/titesi/records.php"
click node_inventory_dashboard "https://github.com/kunlex23/tollycd/blob/main/okojooja/index.php"
click node_waybill_entry "https://github.com/kunlex23/tollycd/blob/main/okojooja/gbigbeTitun2.php"
click node_product_catalog "https://github.com/kunlex23/tollycd/blob/main/okojooja/awe.php"
click node_inventory_records "https://github.com/kunlex23/tollycd/blob/main/okojooja/records.php"
click node_account_dashboard "https://github.com/kunlex23/tollycd/blob/main/onisiro/index.php"
click node_accounting_records "https://github.com/kunlex23/tollycd/blob/main/onisiro/records.php"
click node_revenue_reports "https://github.com/kunlex23/tollycd/blob/main/onisiro/iroyinowo.php"
click node_shipment_finance "https://github.com/kunlex23/tollycd/blob/main/onisiro/iranse.php"
click node_payments "https://github.com/kunlex23/tollycd/blob/main/onisiro/wiwoIro.php"
click node_database "https://github.com/kunlex23/tollycd/blob/main/config.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_login,node_admin,node_admin_metrics,node_user_admin,node_pricing,node_user toneBlue
class node_data_dashboard,node_ship_entry,node_ship_history,node_ship_reports,node_ship_records,node_database toneAmber
class node_inventory_dashboard,node_waybill_entry,node_product_catalog,node_inventory_records toneMint
class node_account_dashboard,node_accounting_records,node_revenue_reports,node_shipment_finance,node_payments toneRose
```

## Components

### Access and Admin

- [Login](https://github.com/kunlex23/tollycd/blob/main/login.php): `login.php`
- [Admin dashboard](https://github.com/kunlex23/tollycd/blob/main/abojuto/index.php): `abojuto/index.php`
- [Admin metrics](https://github.com/kunlex23/tollycd/blob/main/abojuto/server.php): `abojuto/server.php`
- [User administration](https://github.com/kunlex23/tollycd/blob/main/abojuto/newUser.php): `abojuto/newUser.php`
- [Shipment pricing](https://github.com/kunlex23/tollycd/blob/main/abojuto/ninan.php): `abojuto/ninan.php`

### Shipment Operations

- [Data-entry dashboard](https://github.com/kunlex23/tollycd/blob/main/titesi/index.php): `titesi/index.php`
- [Shipment entry](https://github.com/kunlex23/tollycd/blob/main/titesi/gbigbeTitun.php): `titesi/gbigbeTitun.php`
- [Shipment history](https://github.com/kunlex23/tollycd/blob/main/titesi/awe.php): `titesi/awe.php`
- [Shipment reports](https://github.com/kunlex23/tollycd/blob/main/titesi/iroyin.php): `titesi/iroyin.php`
- [Shipment records](https://github.com/kunlex23/tollycd/blob/main/titesi/records.php): `titesi/records.php`

### Inventory Operations

- [Inventory dashboard](https://github.com/kunlex23/tollycd/blob/main/okojooja/index.php): `okojooja/index.php`
- [Waybill entry](https://github.com/kunlex23/tollycd/blob/main/okojooja/gbigbeTitun2.php): `okojooja/gbigbeTitun2.php`
- [Product catalog](https://github.com/kunlex23/tollycd/blob/main/okojooja/awe.php): `okojooja/awe.php`
- [Waybill records](https://github.com/kunlex23/tollycd/blob/main/okojooja/records.php): `okojooja/records.php`

### Accounting and Reports

- [Account dashboard](https://github.com/kunlex23/tollycd/blob/main/onisiro/index.php): `onisiro/index.php`
- [Accounting records](https://github.com/kunlex23/tollycd/blob/main/onisiro/records.php): `onisiro/records.php`
- [Revenue reports](https://github.com/kunlex23/tollycd/blob/main/onisiro/iroyinowo.php): `onisiro/iroyinowo.php`
- [Shipment finance](https://github.com/kunlex23/tollycd/blob/main/onisiro/iranse.php): `onisiro/iranse.php`
- [Payment handling](https://github.com/kunlex23/tollycd/blob/main/onisiro/wiwoIro.php): `onisiro/wiwoIro.php`

### Other components

- **Staff user**
- [MySQL database](https://github.com/kunlex23/tollycd/blob/main/config.php): `config.php`

## Connections

- Staff user → Login: signs in (evidence: `login.php`)
- Login → MySQL database: checks credentials (evidence: `login.php`)
- Staff user → Admin dashboard: opens role area
- Staff user → Data-entry dashboard: opens role area
- Staff user → Inventory dashboard: opens role area
- Staff user → Account dashboard: opens role area
- Admin dashboard → Admin metrics: requests metrics (evidence: `abojuto/index.php`)
- Admin metrics → MySQL database: queries totals (evidence: `abojuto/server.php`)
- Data-entry dashboard → Shipment records: reads shipments (evidence: `titesi/index.php`)
- Data-entry dashboard → MySQL database: queries shipments (evidence: `titesi/index.php`)
- Inventory dashboard → Waybill entry: links to (evidence: `okojooja/index.php`)
- Inventory dashboard → Waybill records: links to (evidence: `okojooja/index.php`)
- Waybill entry → MySQL database: reads agents (evidence: `okojooja/gbigbeTitun2.php`)
- Account dashboard → MySQL database: loads dashboard
- User administration → MySQL database: manages users (evidence: `abojuto/newUser.php`)
- Shipment pricing → MySQL database: stores pricing (evidence: `abojuto/ninan.php`)
- Shipment entry → MySQL database: records shipments (evidence: `titesi/gbigbeTitun.php`)
- Shipment history → MySQL database: reads history (evidence: `titesi/awe.php`)
- Shipment reports → MySQL database: queries reports (evidence: `titesi/iroyin.php`)
- Shipment records → MySQL database: reads records (evidence: `titesi/records.php`)
- Product catalog → MySQL database: queries products (evidence: `okojooja/awe.php`)
- Waybill records → MySQL database: reads waybills (evidence: `okojooja/records.php`)
- Accounting records → MySQL database: queries accounts (evidence: `onisiro/records.php`)
- Revenue reports → MySQL database: queries revenue (evidence: `onisiro/iroyinowo.php`)
- Shipment finance → MySQL database: queries shipments (evidence: `onisiro/iranse.php`)
- Payment handling → MySQL database: records payments (evidence: `onisiro/wiwoIro.php`)
