Hadidi Win
Management system / ERP
Hadidi Win ERP is a full-stack system for a PVC/aluminium window & door manufacturer, covering the full lifecycle from client quotation to production, invoicing, and delivery. The backend is a Laravel API built with Domain-Driven Design and event-driven side effects, paired with two Next.js frontends (a staff dashboard and a distributor portal) plus a mobile client app. Features real-time order tracking, barcode-based cutting/assembly tracking on the factory floor, inventory & financial management (balance sheet, costing, equity), OTP auth, and role-based access across five user roles.

The problem
Hadidi Win, a PVC/aluminium window & door maker, ran quotation, pricing, production, inventory, and delivery through disconnected manual steps — no real-time order visibility, no integrated financial tracking, no secure way to serve five user types on one system.
The solution
Hadidi Win ERP unifies that lifecycle on one Laravel + Next.js platform — barcode-tracked production per piece, an event-driven financial module keeping costing and the balance sheet accurate automatically, and role-scoped portals giving each audience exactly the access it needs.
Use cases
Client (Mobile App)
- Request a quotation for custom PVC/aluminium windows & doors
- Track pricing
- Convert the quotation to an order
- Follow real-time production status
- Manage saved addresses and payments
GM / Ops Manager (Dashboard)
- Price and approve quotations
- Move orders through every production stage
- Manage staff and client accounts
- Control role-based permissions
Factory Floor Worker
- Scan barcoded cut pieces to log cutting/assembly progress
- Raw-material stock is consumed automatically with each scan
Sales Rep
- Manage a sandboxed client list
- Build quotations
- Track earned commissions
Distributor (Portal)
- View stock allocations
- Place orders
- Check their own ledger, invoices, and payments
Accountant
- Review the automatically maintained balance sheet
- Review inventory costing
- Review equity transactions generated from every order and stock movement
Any User
- Register and log in securely via OTP phone verification
- Recover their password
GM (System Settings)
- Manage Firebase push credentials
- Toggle maintenance mode
- Set forced app-update rules
- All from one panel
Diagrams
System Architecture
User Roles & Portals
Order Lifecycle
Quotation-to-Delivery Flow
Built with
Laravel, PHP, Next.js, React, MySQL, Redis, Laravel Sanctum, Laravel Reverb (WebSockets), Spatie Permissions, Tailwind CSS, Firebase Cloud Messaging (FCM), SMS OTP (BeOn), Domain-Driven Design, REST API