# ananndhitaa/hijab-ceria- architecture

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

- Interactive diagram: https://gitdiagram.com/ananndhitaa/hijab-ceria-
- Repository: https://github.com/ananndhitaa/hijab-ceria-

## Overview

NAYARA is a multi-tenant, make-to-order hijab-confection ERP. The principal workflow begins with Admin recording a customer order, then moves through invoice and confirmed down payment, material planning and purchasing, production/QC, payment and shipment, with Owners monitoring tenant costs and performance. Separate product branches cover platform administration, public storefront discovery, and customer order access. Workflow links follow the README; unsampled subsystems are represented at their exact enclosing source directories rather than implying inspected implementation details.

Main entry points: [`app/Services/Production/BatchService.php`](https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Services/Production/BatchService.php) (Production Batches), [`app/Http/Controllers/Admin/OrderController.php`](https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Http/Controllers/Admin/OrderController.php) (Sales Orders), [`app/Services/Inventory/BatchMaterialPlanningService.php`](https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Services/Inventory/BatchMaterialPlanningService.php) (Material Planning), [`app/Http/Controllers/Platform`](https://github.com/ananndhitaa/hijab-ceria-/tree/main/app/Http/Controllers/Platform) (Platform Operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sales["Sales &amp; Orders"]
  node_sales_order["Sales Orders"]
  node_customer_records[("Customer Records<br/>[Customer.php]")]
  node_invoice["Invoices &amp; Payments<br/>[InvoiceService.php]"]
  node_customer_portal["Customer Portal"]
  node_tracking["Order Tracking"]
end

subgraph group_inventory["Materials &amp; Purchasing"]
  node_mrp["Material Planning"]
  node_materials[("Materials &amp; Stock<br/>[Material.php]")]
  node_purchasing["Purchase Orders"]
  node_receiving["Purchase Receiving"]
end

subgraph group_production["Production &amp; Delivery"]
  node_batch["Production Batches<br/>[BatchService.php]"]
  node_results_qc["Results &amp; QC"]
  node_shipment["Shipment"]
end

subgraph group_finance["Tenant Finance"]
  node_tenant_finance["HPP &amp; Analytics"]
  node_tenant["Tenant Context<br/>[TenantContext.php]"]
end

subgraph group_platform["Platform &amp; Public"]
  node_platform_ops["Platform Operations"]
  node_platform_services["Platform Services"]
  node_storefront["Public Storefront"]
end

node_customer(("Customer"))
node_admin(("Tenant Admin"))
node_superadmin(("Super Admin"))
node_whatsapp(("WhatsApp Contact"))

node_customer -->|"contacts"| node_whatsapp
node_admin -->|"records customer"| node_customer_records
node_admin -->|"records order"| node_sales_order
node_sales_order -->|"issues invoice"| node_invoice
node_invoice -->|"enables after DP"| node_batch
node_batch -->|"initiates planning"| node_mrp
node_mrp -->|"checks requirements"| node_materials
node_mrp -->|"routes shortages"| node_purchasing
node_purchasing -->|"receives materials"| node_receiving
node_receiving -->|"updates stock"| node_materials
node_batch -->|"records output"| node_results_qc
node_results_qc -->|"completes packing"| node_shipment
node_admin -->|"records payment"| node_invoice
node_shipment -->|"provides shipment info"| node_customer_portal
node_customer -->|"views own orders"| node_customer_portal
node_customer_portal -->|"supports tracking"| node_tracking
node_admin -->|"monitors costs"| node_tenant_finance
node_superadmin -->|"administers platform"| node_platform_ops
node_platform_ops -->|"manages services"| node_platform_services
node_customer -->|"browses shops"| node_storefront
node_storefront -->|"provides contact"| node_whatsapp
node_sales_order -->|"resolves tenant"| node_tenant
node_batch -->|"resolves tenant"| node_tenant
node_platform_ops -->|"uses notifications"| node_platform_services

click node_sales_order "https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Http/Controllers/Admin/OrderController.php"
click node_customer_records "https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Models/Master/Customer.php"
click node_invoice "https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Services/Sales/InvoiceService.php"
click node_customer_portal "https://github.com/ananndhitaa/hijab-ceria-/tree/main/app/Http/Controllers/Customer"
click node_tracking "https://github.com/ananndhitaa/hijab-ceria-/tree/main/app/Services/Tracking"
click node_mrp "https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Services/Inventory/BatchMaterialPlanningService.php"
click node_materials "https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Models/Master/Material.php"
click node_purchasing "https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Services/Inventory/PurchaseOrderService.php"
click node_receiving "https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Services/Inventory/PurchaseReceivingService.php"
click node_batch "https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Services/Production/BatchService.php"
click node_results_qc "https://github.com/ananndhitaa/hijab-ceria-/tree/main/app/Services/Production"
click node_shipment "https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Services/Production/ShipmentService.php"
click node_tenant_finance "https://github.com/ananndhitaa/hijab-ceria-/tree/main/app/Services/Finance"
click node_tenant "https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Services/System/TenantContext.php"
click node_platform_ops "https://github.com/ananndhitaa/hijab-ceria-/tree/main/app/Http/Controllers/Platform"
click node_platform_services "https://github.com/ananndhitaa/hijab-ceria-/tree/main/app/Services/Platform"
click node_storefront "https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Http/Controllers/Platform/PublicStorefrontController.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_sales_order,node_customer_records,node_invoice,node_customer_portal,node_tracking toneBlue
class node_mrp,node_materials,node_purchasing,node_receiving toneAmber
class node_batch,node_results_qc,node_shipment toneMint
class node_tenant_finance,node_tenant toneRose
class node_platform_ops,node_platform_services,node_storefront,node_customer,node_admin,node_superadmin,node_whatsapp toneIndigo
```

## Components

### Sales & Orders

- [Sales Orders](https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Http/Controllers/Admin/OrderController.php): `app/Http/Controllers/Admin/OrderController.php`
- [Customer Records](https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Models/Master/Customer.php): `app/Models/Master/Customer.php`
- [Invoices & Payments](https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Services/Sales/InvoiceService.php): `app/Services/Sales/InvoiceService.php`
- [Customer Portal](https://github.com/ananndhitaa/hijab-ceria-/tree/main/app/Http/Controllers/Customer): `app/Http/Controllers/Customer`
- [Order Tracking](https://github.com/ananndhitaa/hijab-ceria-/tree/main/app/Services/Tracking): `app/Services/Tracking`

### Materials & Purchasing

- [Material Planning](https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Services/Inventory/BatchMaterialPlanningService.php): `app/Services/Inventory/BatchMaterialPlanningService.php`
- [Materials & Stock](https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Models/Master/Material.php): `app/Models/Master/Material.php`
- [Purchase Orders](https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Services/Inventory/PurchaseOrderService.php): `app/Services/Inventory/PurchaseOrderService.php`
- [Purchase Receiving](https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Services/Inventory/PurchaseReceivingService.php): `app/Services/Inventory/PurchaseReceivingService.php`

### Production & Delivery

- [Production Batches](https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Services/Production/BatchService.php): `app/Services/Production/BatchService.php`
- [Results & QC](https://github.com/ananndhitaa/hijab-ceria-/tree/main/app/Services/Production): `app/Services/Production`
- [Shipment](https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Services/Production/ShipmentService.php): `app/Services/Production/ShipmentService.php`

### Tenant Finance

- [HPP & Analytics](https://github.com/ananndhitaa/hijab-ceria-/tree/main/app/Services/Finance): `app/Services/Finance`
- [Tenant Context](https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Services/System/TenantContext.php): `app/Services/System/TenantContext.php`

### Platform & Public

- [Platform Operations](https://github.com/ananndhitaa/hijab-ceria-/tree/main/app/Http/Controllers/Platform): `app/Http/Controllers/Platform`
- [Platform Services](https://github.com/ananndhitaa/hijab-ceria-/tree/main/app/Services/Platform): `app/Services/Platform`
- [Public Storefront](https://github.com/ananndhitaa/hijab-ceria-/blob/main/app/Http/Controllers/Platform/PublicStorefrontController.php): `app/Http/Controllers/Platform/PublicStorefrontController.php`

### Other components

- **Customer**
- **Tenant Admin**
- **Super Admin**
- **WhatsApp Contact**

## Connections

- Customer → WhatsApp Contact: contacts (evidence: `README.md`)
- Tenant Admin → Customer Records: records customer (evidence: `README.md`)
- Tenant Admin → Sales Orders: records order (evidence: `README.md`)
- Sales Orders → Invoices & Payments: issues invoice (evidence: `README.md`)
- Invoices & Payments → Production Batches: enables after DP (evidence: `README.md`)
- Production Batches → Material Planning: initiates planning (evidence: `README.md`)
- Material Planning → Materials & Stock: checks requirements (evidence: `README.md`)
- Material Planning → Purchase Orders: routes shortages (evidence: `README.md`)
- Purchase Orders → Purchase Receiving: receives materials (evidence: `README.md`)
- Purchase Receiving → Materials & Stock: updates stock (evidence: `README.md`)
- Production Batches → Results & QC: records output (evidence: `README.md`)
- Results & QC → Shipment: completes packing (evidence: `README.md`)
- Tenant Admin → Invoices & Payments: records payment (evidence: `README.md`)
- Shipment → Customer Portal: provides shipment info (evidence: `README.md`)
- Customer → Customer Portal: views own orders (evidence: `README.md`)
- Customer Portal → Order Tracking: supports tracking (evidence: `README.md`)
- Tenant Admin → HPP & Analytics: monitors costs (evidence: `README.md`)
- Super Admin → Platform Operations: administers platform (evidence: `README.md`)
- Platform Operations → Platform Services: manages services (evidence: `README.md`)
- Customer → Public Storefront: browses shops (evidence: `README.md`)
- Public Storefront → WhatsApp Contact: provides contact (evidence: `README.md`)
- Sales Orders → Tenant Context: resolves tenant (evidence: `app/Http/Controllers/Admin/OrderController.php`)
- Production Batches → Tenant Context: resolves tenant (evidence: `app/Services/Production/BatchService.php`)
- Platform Operations → Platform Services: uses notifications (evidence: `app/Http/Controllers/Platform/PlatformAdReviewController.php`)
