# PRD Implementation Map

## Core Ready

- Authentication foundation: `users`, sessions, password reset table, Sanctum dependency, Spatie permission tables.
- RBAC: Super Admin, Branch Manager, Pharmacist, Cashier, Accountant roles seeded with permissions.
- Multi-branch: `branches`, branch-aware users, employees, batches, sales, purchase orders, reports.
- Employee management: profiles, attendance, leave requests, payroll runs, payroll lines, salary and sales target fields.
- Medicine inventory: generic medicine, brand variants, SKU/barcode, Rx flag, category, therapeutic class, storage, reorder level.
- Batch tracking: batch number, manufacture/expiry dates, supplier, branch, purchase price, selling price, stock and reservation fields.
- POS billing: FEFO batch selection, customer auto-create, tax, discount, payment method, due balance, loyalty points.
- Supplier purchasing: suppliers, purchase orders, purchase items, approval-ready statuses.
- Customer and prescription: customer profile, due/credit, loyalty, prescription image/reference table.
- Stock operations: adjustments, inter-branch transfers, audit fields.
- Reporting: dashboard metrics, top sellers, inventory valuation, low-stock, near-expiry, expired stock, purchase suggestions.
- Notifications: system notification table with severity, branch/user target, read tracking, and JSON metadata.

## Next Production Steps

- Install PHP 8.3+ and Composer, then run `composer install`.
- Add an auth starter kit or custom login screens before production exposure.
- Publish and tune Spatie permission config if team-based branch roles become necessary.
- Add barcode scanner keyboard focus and thermal receipt print templates.
- Add PDF/Excel export controllers after enabling the required XAMPP PHP extensions or adding export packages.
- Add API routes for mobile/offline POS sync once the web flow is approved.
