# Module Registry — AARJAY GDP Portal MVC

**Commercial Pilot 1.0.0-pilot (Active)** — schema floor 287+. Legacy v11.x–v15.x module lists below remain for reference during migration; prefer routes and permissions aligned to the pilot release.

This registry lists the main module slugs/routes expected in the v11.x build. Use it when checking the Permissions matrix and route smoke tests.

## Core / Admin

| Module | Slug | Route |
|---|---|---|
| Dashboard | `dashboard` | `/` |
| Users | `users` | `/user` |
| Permissions | `permissions` | `/permission` |
| Activity Log | `activity_log` | `/activity-log` |
| Site Settings | `site_settings` | `/site-settings` |
| Notifications | `notifications` | `/notification` |
| System Health | `system_health` | `/system-health` |

## Customer / Supplier / Stock / Orders

| Module | Slug | Route |
|---|---|---|
| Suppliers | `suppliers` | `/supplier` |
| Supplier Categories | `supplier_categories` | `/supplier-category` |
| Customers | `customers` | `/customer` |
| Products | `products` | `/product` |
| Batch / Stock | `stock_batches` | `/batch` |
| Recall Trace | `stock_batches` | `/batch/recall` |
| Sales Orders | `sales_orders` | `/sales-order` |
| Dispatch | `dispatches` | `/dispatch` |
| Purchase Requests | `purchase_requests` | `/purchase-request` |
| Goods Receiving | `goods_receivings` | `/goods-receiving` |
| Contact Directory | `contact_directory` | `/contact-directory` |
| Communication Log | `communication_logs` | `/communication-log` | Reason catalog + mailto/WhatsApp compose (256–265) |

## GDP Compliance / QMS

| Module | Slug | Route |
|---|---|---|
| Deviations | `deviations` | `/deviation` |
| CAPA | `capas` | `/capa` |
| Change Control | `change_controls` | `/change-control` |
| SOPs | `sops` | `/sop` |
| Document Control | `document_controls` | `/document-control` |
| Forms & Templates | `forms_templates` | `/forms-templates` |
| Risk Assessments | `risk_assessments` | `/risk-assessment` |
| Complaints | `complaints` | `/complaint` |
| Recalls | `recalls` | `/recall` |
| Falsified Medicines | `falsified_medicines` | `/falsified-medicine` |
| Defective Stock | `defective_stock` | `/defective-stock` |
| Audits | `audits` | `/audit` |
| GDP Gap Analysis | `gdp_gap_analysis` | `/gdp-gap-analysis` |

## People & Training

| Module | Slug | Route |
|---|---|---|
| Training Matrix | `training_matrix` | `/training-matrix` |
| SOP Read & Sign | `sop_signoffs` | `/sop-signoff` | Acknowledge + optional full e-sign (256–265) |
| Training Records | `training_records` | `/training-record` |

## Premises & Equipment

| Module | Slug | Route |
|---|---|---|
| Premises & Equipment | `premises_equipment` | `/premises-equipment` |
| Premises Checks | `premises_checks` | `/premises-check` |
| Cleaning Logs | `cleaning_logs` | `/cleaning-log` |
| Pest Control | `pest_control_logs` | `/pest-control` |
| Fire & Safety | `fire_safety_records` | `/fire-safety` |
| Cold-chain Imports | `cold_chain_imports` | `/cold-chain-import` |

## Accounts & Tax

| Module | Slug | Route |
|---|---|---|
| Accounts & Tax | `accounts_finance` | `/accounts` |
| Payment Tracker | `accounts_finance` | `/accounts/payment-tracker` |
| VAT Report | `accounts_finance` | `/accounts/vat-report` |
| Accountant Export Pack | `accounts_finance` | `/accounts/export-pack` |
| Credit Notes | `credit_notes` | `/accounts/credit-notes` |
| Accounting Integrations | `accounting_integrations` | `/accounting-integration` |

## Advanced Tools

| Module | Slug | Route |
|---|---|---|
| AI Report Writer | `advanced_tools` | `/advanced/reports` |
| QR Labels | `advanced_tools` | `/advanced/qr-labels` |

## Permission check note

Admin bypasses module permissions. For non-admin roles, add rows in `permissions` for every slug listed above that the role should access.

## Late-stage GDP workflow modules added after initial registry

| Module | Slug | Route |
|---|---|---|
| Technical Agreements | `technical_agreements` | `/technical-agreement` | Bidirectional + sites + attachments (256–265) |
| Returns | `returns` | `/return` |
| Qualifications | `qualifications` | `/qualification` |
| MHRA Inspections | `mhra_inspections` | `/mhra-inspection` |
| Account Reopening | `account_reopenings` | `/account-reopening` |
| Company & Sites | `company_sites` | `/company-sites` |
| Accounting Integrations | `accounting_integrations` | `/accounting-integration` |
