Operations dashboard
Sales, stock, and recent activity KPIs in one summary.
Case study · 06 / 08
From incoming stock to profit and loss in one workspace.

An SME operations dashboard for products, stock, sales, invoices, customers, purchasing, expenses, reporting, and activity audits.
Key achievement
Brought SME stock, sales, purchasing, and profit-and-loss into one workflow with an audit trail.

01 · Context
Primary users
The problem
Many SMEs record inventory, sales, suppliers, and expenses in different places. Revenue may be visible while the real stock position and profit remain difficult to trace.
The approach
OpsHub connects sales with stock reduction, purchasing with stock replenishment, expenses with profit-and-loss reporting, and every sensitive change with an audit log.
Key numbers
02 · My role
Full-stack Engineer · Product UI
Technology used
Built stock-in, stock-out, adjustment, and low-stock alert flows.
Built sales transactions with discounts, tax, refunds, and PDF invoices.
Built sales and profit-and-loss reports from transaction and expense data.
Recorded an audit log of who changed what and when.
Implemented multi-role sign-in for admins, staff, and owners.
03 · Highlights
Click an image to view it larger.
Swipe through them all, tap an image to enlarge it.
01 / 04
Sales, stock, and recent activity KPIs in one summary.
Transactions with customer, value, and payment status.
Revenue, costs, and net result presented together.
A history of user actions for tracing every data change.
04 · Challenges & decisions
01 / 02
05 · Outcome
Owners gain one operational source of truth while admins and staff continue to work within their roles without unnecessary access to sensitive data.
User flow
Architecture
Frontend
React + TypeScript + Vite · responsive operations UI
API
Laravel REST API · Sanctum bearer token · RBAC middleware
Domain
Inventory · Sales · Purchasing · Expenses · Reporting · Audit
Persistence
MySQL production · SQLite smoke tests / CI
Data model
User & Role
role
status
permissions
Product
sku
category_id
price
stock
Stock Movement
product_id
type
before
after
Sale
customer_id
payment_status
total
Audit Log
actor_id
action
record
created_at
