# tiazfebias/parapatan_tailor architecture

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

- Interactive diagram: https://gitdiagram.com/tiazfebias/parapatan_tailor
- Repository: https://github.com/tiazfebias/parapatan_tailor

## Overview

This is a PHP tailor-management application: users sign in, then manage customers and orders, track payments, and review operational and financial reports. The graph preserves the main domain areas, shared page chrome, and the database layer. Relationships are limited to imports or calls visible in the SOURCE INDEX or excerpts; export implementations and several auxiliary routes were not sampled, so their internal links are not inferred.

Main entry points: [`config/database.php`](https://github.com/tiazfebias/parapatan_tailor/blob/main/config/database.php) (Database helpers), [`includes/sidebar.php`](https://github.com/tiazfebias/parapatan_tailor/blob/main/includes/sidebar.php) (Navigation sidebar), [`includes/header.php`](https://github.com/tiazfebias/parapatan_tailor/blob/main/includes/header.php) (Page header), [`includes/footer.php`](https://github.com/tiazfebias/parapatan_tailor/blob/main/includes/footer.php) (Page footer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and navigation"]
  node_login["Sign in<br/>[login.php]"]
  node_dashboard["Dashboard<br/>[dashboard.php]"]
  node_sidebar["Navigation sidebar<br/>[sidebar.php]"]
  node_users["User administration<br/>[users.php]"]
  node_profile["User profile<br/>[profile.php]"]
end

subgraph group_operations["Tailor operations"]
  node_customer["Customer records<br/>[pelanggan.php]"]
  node_customer_edit["Customer editing<br/>[editpelanggan.php]"]
  node_customer_add["Customer creation"]
  node_orders["Order management<br/>[pesanan.php]"]
  node_order_add["Order creation<br/>[tambahpesanan.php]"]
  node_order_edit["Order editing<br/>[editpesanan.php]"]
  node_order_detail["Order details<br/>[detail_pesanan.php]"]
  node_employees["Employee records<br/>[karyawan.php]"]
  node_customer_excel["Customer spreadsheet export"]
  node_customer_pdf["Customer PDF export"]
  node_invoice["Invoice printing<br/>[cetak_invoice.php]"]
end

subgraph group_finance["Payments and reports"]
  node_transactions["Transactions<br/>[transaksi.php]"]
  node_transaction_data["Transaction data<br/>[data_transaksi.php]"]
  node_transaction_edit["Transaction editing<br/>[edittransaksi.php]"]
  node_income["Income records<br/>[pemasukan.php]"]
  node_reports["Reports<br/>[laporan.php]"]
  node_report_excel["Report spreadsheet export<br/>[export_excel.php]"]
  node_report_finance_excel["Financial spreadsheet export"]
  node_report_pdf["Report PDF export<br/>[export_pdf.php]"]
  node_report_finance_pdf["Financial PDF export"]
end

subgraph group_platform["Shared platform"]
  node_header["Page header<br/>[header.php]"]
  node_footer["Page footer<br/>[footer.php]"]
  node_database_layer["Database helpers<br/>[database.php]"]
end

node_user(("Staff user"))
node_mysql[("MySQL database")]

node_user -->|"signs in"| node_login
node_login -->|"queries users"| node_database_layer
node_dashboard -->|"loads dashboard data"| node_database_layer
node_dashboard -->|"includes"| node_sidebar
node_dashboard -->|"includes"| node_header
node_dashboard -->|"includes"| node_footer
node_customer -->|"queries records"| node_database_layer
node_customer -->|"includes"| node_sidebar
node_customer -->|"includes"| node_header
node_customer -->|"includes"| node_footer
node_customer_edit -->|"queries records"| node_database_layer
node_customer_edit -->|"includes"| node_sidebar
node_customer_edit -->|"includes"| node_header
node_customer_add -->|"queries records"| node_database_layer
node_customer_add -->|"includes"| node_sidebar
node_customer_add -->|"includes"| node_header
node_orders -->|"queries orders"| node_database_layer
node_orders -->|"includes"| node_sidebar
node_orders -->|"includes"| node_header
node_orders -->|"includes"| node_footer
node_order_add -->|"queries orders"| node_database_layer
node_order_add -->|"includes"| node_sidebar
node_order_add -->|"includes"| node_header
node_order_add -->|"includes"| node_footer
node_order_edit -->|"queries orders"| node_database_layer
node_order_edit -->|"includes"| node_sidebar
node_order_edit -->|"includes"| node_header
node_order_edit -->|"includes"| node_footer
node_order_detail -->|"queries orders"| node_database_layer
node_order_detail -->|"includes"| node_sidebar
node_order_detail -->|"includes"| node_header
node_order_detail -->|"includes"| node_footer
node_employees -->|"queries staff"| node_database_layer
node_employees -->|"includes"| node_sidebar
node_employees -->|"includes"| node_header
node_employees -->|"includes"| node_footer
node_users -->|"manages users"| node_database_layer
node_users -->|"syncs staff"| node_employees
node_users -->|"includes"| node_sidebar
node_users -->|"includes"| node_header
node_users -->|"includes"| node_footer
node_transactions -->|"queries payments"| node_database_layer
node_transactions -->|"includes"| node_sidebar
node_transactions -->|"includes"| node_header
node_transactions -->|"includes"| node_footer
node_transaction_edit -->|"queries payments"| node_database_layer
node_transaction_edit -->|"includes"| node_sidebar
node_transaction_edit -->|"includes"| node_header

click node_login "https://github.com/tiazfebias/parapatan_tailor/blob/main/login.php"
click node_dashboard "https://github.com/tiazfebias/parapatan_tailor/blob/main/dashboard.php"
click node_sidebar "https://github.com/tiazfebias/parapatan_tailor/blob/main/includes/sidebar.php"
click node_customer "https://github.com/tiazfebias/parapatan_tailor/blob/main/pelanggan/pelanggan.php"
click node_customer_edit "https://github.com/tiazfebias/parapatan_tailor/blob/main/pelanggan/editpelanggan.php"
click node_customer_add "https://github.com/tiazfebias/parapatan_tailor/blob/main/pelanggan/tambahpelanggan.php"
click node_orders "https://github.com/tiazfebias/parapatan_tailor/blob/main/pesanan/pesanan.php"
click node_order_add "https://github.com/tiazfebias/parapatan_tailor/blob/main/pesanan/tambahpesanan.php"
click node_order_edit "https://github.com/tiazfebias/parapatan_tailor/blob/main/pesanan/editpesanan.php"
click node_order_detail "https://github.com/tiazfebias/parapatan_tailor/blob/main/pesanan/detail_pesanan.php"
click node_employees "https://github.com/tiazfebias/parapatan_tailor/blob/main/karyawan/karyawan.php"
click node_users "https://github.com/tiazfebias/parapatan_tailor/blob/main/users/users.php"
click node_transactions "https://github.com/tiazfebias/parapatan_tailor/blob/main/transaksi/transaksi.php"
click node_transaction_data "https://github.com/tiazfebias/parapatan_tailor/blob/main/transaksi/data_transaksi.php"
click node_transaction_edit "https://github.com/tiazfebias/parapatan_tailor/blob/main/transaksi/edittransaksi.php"
click node_income "https://github.com/tiazfebias/parapatan_tailor/blob/main/transaksi/pemasukan.php"
click node_reports "https://github.com/tiazfebias/parapatan_tailor/blob/main/laporan/laporan.php"
click node_report_excel "https://github.com/tiazfebias/parapatan_tailor/blob/main/laporan/export_excel.php"
click node_report_finance_excel "https://github.com/tiazfebias/parapatan_tailor/blob/main/laporan/export_excel_keuangan.php"
click node_report_pdf "https://github.com/tiazfebias/parapatan_tailor/blob/main/laporan/export_pdf.php"
click node_report_finance_pdf "https://github.com/tiazfebias/parapatan_tailor/blob/main/laporan/export_pdf_keuangan.php"
click node_customer_excel "https://github.com/tiazfebias/parapatan_tailor/blob/main/pelanggan/export_pelanggan_excel.php"
click node_customer_pdf "https://github.com/tiazfebias/parapatan_tailor/blob/main/pelanggan/export_pelanggan_pdf.php"
click node_invoice "https://github.com/tiazfebias/parapatan_tailor/blob/main/pesanan/cetak_invoice.php"
click node_profile "https://github.com/tiazfebias/parapatan_tailor/blob/main/profile.php"
click node_header "https://github.com/tiazfebias/parapatan_tailor/blob/main/includes/header.php"
click node_footer "https://github.com/tiazfebias/parapatan_tailor/blob/main/includes/footer.php"
click node_database_layer "https://github.com/tiazfebias/parapatan_tailor/blob/main/config/database.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_dashboard,node_sidebar,node_users,node_profile,node_user toneBlue
class node_customer,node_customer_edit,node_customer_add,node_orders,node_order_add,node_order_edit,node_order_detail,node_employees,node_customer_excel,node_customer_pdf,node_invoice,node_mysql toneAmber
class node_transactions,node_transaction_data,node_transaction_edit,node_income,node_reports,node_report_excel,node_report_finance_excel,node_report_pdf,node_report_finance_pdf toneMint
class node_header,node_footer,node_database_layer toneRose
```

## Components

### Access and navigation

- [Sign in](https://github.com/tiazfebias/parapatan_tailor/blob/main/login.php): `login.php`
- [Dashboard](https://github.com/tiazfebias/parapatan_tailor/blob/main/dashboard.php): `dashboard.php`
- [Navigation sidebar](https://github.com/tiazfebias/parapatan_tailor/blob/main/includes/sidebar.php): `includes/sidebar.php`
- [User administration](https://github.com/tiazfebias/parapatan_tailor/blob/main/users/users.php): `users/users.php`
- [User profile](https://github.com/tiazfebias/parapatan_tailor/blob/main/profile.php): `profile.php`

### Tailor operations

- [Customer records](https://github.com/tiazfebias/parapatan_tailor/blob/main/pelanggan/pelanggan.php): `pelanggan/pelanggan.php`
- [Customer editing](https://github.com/tiazfebias/parapatan_tailor/blob/main/pelanggan/editpelanggan.php): `pelanggan/editpelanggan.php`
- [Customer creation](https://github.com/tiazfebias/parapatan_tailor/blob/main/pelanggan/tambahpelanggan.php): `pelanggan/tambahpelanggan.php`
- [Order management](https://github.com/tiazfebias/parapatan_tailor/blob/main/pesanan/pesanan.php): `pesanan/pesanan.php`
- [Order creation](https://github.com/tiazfebias/parapatan_tailor/blob/main/pesanan/tambahpesanan.php): `pesanan/tambahpesanan.php`
- [Order editing](https://github.com/tiazfebias/parapatan_tailor/blob/main/pesanan/editpesanan.php): `pesanan/editpesanan.php`
- [Order details](https://github.com/tiazfebias/parapatan_tailor/blob/main/pesanan/detail_pesanan.php): `pesanan/detail_pesanan.php`
- [Employee records](https://github.com/tiazfebias/parapatan_tailor/blob/main/karyawan/karyawan.php): `karyawan/karyawan.php`
- [Customer spreadsheet export](https://github.com/tiazfebias/parapatan_tailor/blob/main/pelanggan/export_pelanggan_excel.php): `pelanggan/export_pelanggan_excel.php`
- [Customer PDF export](https://github.com/tiazfebias/parapatan_tailor/blob/main/pelanggan/export_pelanggan_pdf.php): `pelanggan/export_pelanggan_pdf.php`
- [Invoice printing](https://github.com/tiazfebias/parapatan_tailor/blob/main/pesanan/cetak_invoice.php): `pesanan/cetak_invoice.php`

### Payments and reports

- [Transactions](https://github.com/tiazfebias/parapatan_tailor/blob/main/transaksi/transaksi.php): `transaksi/transaksi.php`
- [Transaction data](https://github.com/tiazfebias/parapatan_tailor/blob/main/transaksi/data_transaksi.php): `transaksi/data_transaksi.php`
- [Transaction editing](https://github.com/tiazfebias/parapatan_tailor/blob/main/transaksi/edittransaksi.php): `transaksi/edittransaksi.php`
- [Income records](https://github.com/tiazfebias/parapatan_tailor/blob/main/transaksi/pemasukan.php): `transaksi/pemasukan.php`
- [Reports](https://github.com/tiazfebias/parapatan_tailor/blob/main/laporan/laporan.php): `laporan/laporan.php`
- [Report spreadsheet export](https://github.com/tiazfebias/parapatan_tailor/blob/main/laporan/export_excel.php): `laporan/export_excel.php`
- [Financial spreadsheet export](https://github.com/tiazfebias/parapatan_tailor/blob/main/laporan/export_excel_keuangan.php): `laporan/export_excel_keuangan.php`
- [Report PDF export](https://github.com/tiazfebias/parapatan_tailor/blob/main/laporan/export_pdf.php): `laporan/export_pdf.php`
- [Financial PDF export](https://github.com/tiazfebias/parapatan_tailor/blob/main/laporan/export_pdf_keuangan.php): `laporan/export_pdf_keuangan.php`

### Shared platform

- [Page header](https://github.com/tiazfebias/parapatan_tailor/blob/main/includes/header.php): `includes/header.php`
- [Page footer](https://github.com/tiazfebias/parapatan_tailor/blob/main/includes/footer.php): `includes/footer.php`
- [Database helpers](https://github.com/tiazfebias/parapatan_tailor/blob/main/config/database.php): `config/database.php`

### Other components

- **Staff user**
- **MySQL database**

## Connections

- Staff user → Sign in: signs in
- Sign in → Database helpers: queries users (evidence: `login.php`)
- Dashboard → Database helpers: loads dashboard data (evidence: `dashboard.php`)
- Dashboard → Navigation sidebar: includes (evidence: `dashboard.php`)
- Dashboard → Page header: includes (evidence: `dashboard.php`)
- Dashboard → Page footer: includes (evidence: `dashboard.php`)
- Customer records → Database helpers: queries records (evidence: `pelanggan/pelanggan.php`)
- Customer records → Navigation sidebar: includes (evidence: `pelanggan/pelanggan.php`)
- Customer records → Page header: includes (evidence: `pelanggan/pelanggan.php`)
- Customer records → Page footer: includes (evidence: `pelanggan/pelanggan.php`)
- Customer editing → Database helpers: queries records (evidence: `pelanggan/editpelanggan.php`)
- Customer editing → Navigation sidebar: includes (evidence: `pelanggan/editpelanggan.php`)
- Customer editing → Page header: includes (evidence: `pelanggan/editpelanggan.php`)
- Customer creation → Database helpers: queries records (evidence: `pelanggan/tambahpelanggan.php`)
- Customer creation → Navigation sidebar: includes (evidence: `pelanggan/tambahpelanggan.php`)
- Customer creation → Page header: includes (evidence: `pelanggan/tambahpelanggan.php`)
- Order management → Database helpers: queries orders (evidence: `pesanan/pesanan.php`)
- Order management → Navigation sidebar: includes (evidence: `pesanan/pesanan.php`)
- Order management → Page header: includes (evidence: `pesanan/pesanan.php`)
- Order management → Page footer: includes (evidence: `pesanan/pesanan.php`)
- Order creation → Database helpers: queries orders (evidence: `pesanan/tambahpesanan.php`)
- Order creation → Navigation sidebar: includes (evidence: `pesanan/tambahpesanan.php`)
- Order creation → Page header: includes (evidence: `pesanan/tambahpesanan.php`)
- Order creation → Page footer: includes (evidence: `pesanan/tambahpesanan.php`)
- Order editing → Database helpers: queries orders (evidence: `pesanan/editpesanan.php`)
- Order editing → Navigation sidebar: includes (evidence: `pesanan/editpesanan.php`)
- Order editing → Page header: includes (evidence: `pesanan/editpesanan.php`)
- Order editing → Page footer: includes (evidence: `pesanan/editpesanan.php`)
- Order details → Database helpers: queries orders (evidence: `pesanan/detail_pesanan.php`)
- Order details → Navigation sidebar: includes (evidence: `pesanan/detail_pesanan.php`)
- Order details → Page header: includes (evidence: `pesanan/detail_pesanan.php`)
- Order details → Page footer: includes (evidence: `pesanan/detail_pesanan.php`)
- Employee records → Database helpers: queries staff (evidence: `karyawan/karyawan.php`)
- Employee records → Navigation sidebar: includes (evidence: `karyawan/karyawan.php`)
- Employee records → Page header: includes (evidence: `karyawan/karyawan.php`)
- Employee records → Page footer: includes (evidence: `karyawan/karyawan.php`)
- User administration → Database helpers: manages users (evidence: `users/users.php`)
- User administration → Employee records: syncs staff (evidence: `users/users.php`)
- User administration → Navigation sidebar: includes (evidence: `users/users.php`)
- User administration → Page header: includes (evidence: `users/users.php`)
- User administration → Page footer: includes (evidence: `users/users.php`)
- Transactions → Database helpers: queries payments (evidence: `transaksi/transaksi.php`)
- Transactions → Navigation sidebar: includes (evidence: `transaksi/transaksi.php`)
- Transactions → Page header: includes (evidence: `transaksi/transaksi.php`)
- Transactions → Page footer: includes (evidence: `transaksi/transaksi.php`)
- Transaction editing → Database helpers: queries payments (evidence: `transaksi/edittransaksi.php`)
- Transaction editing → Navigation sidebar: includes (evidence: `transaksi/edittransaksi.php`)
- Transaction editing → Page header: includes (evidence: `transaksi/edittransaksi.php`)
