Official web portal and commercial document administration platform for Modrea Pharma Limited (Nairobi, Kenya) — Built with Astro, React, TypeScript, and Supabase.
# Modrea Pharma Limited — Web Platform & Commercial Operations Desk
> Official web portal and commercial document administration platform for **Modrea Pharma Limited**, a licensed pharmaceutical and therapeutic health supplement distributor based in Nairobi, Kenya.
---
## Overview
The Modrea Pharma platform is engineered with a split-architecture model:
1. **High-Performance Public Catalog**: Blazing-fast, SEO-optimized static pages (SSG) showcasing key pharmaceutical formulations (`JointSolace`, `Mamalisha`, `Bio Uzima`) with clinical specifications, indications, and direct B2B/B2C inquiry channels.
2. **Executive Commercial Desk**: A secured, authenticated administration workspace for generating, archiving, and dispatching regulatory-compliant Sales Invoices, Manufacturer Purchase Orders, and Client Account Statements.
---
## Key Features
### 🌐 Public Web Application
- **Static Site Generation (SSG)**: Sub-second page loads powered by Astro 7 with zero runtime JavaScript on content-heavy pages.
- **Product Showcase**: Detailed formulation monographs, batch/packaging indicators, clinical indication tags, and interactive image galleries.
- **SEO & AI Search Readiness**: Semantic schema markup (`MedicalBusiness`, `Product`), OpenGraph cards, XML sitemaps, and structured `llms.txt` / `robots.txt` for AI crawlers.
- **Direct Remittance & Inquiry Channels**: Integrated MPESA Paybill indicators (`880100 / 4451350015`), Formspree B2B contact pipelines, and dynamic WhatsApp Business routing.
### Executive Operations Desk (`/admin`)
- **Strict Role-Based Access Control (RBAC)**: Multi-layer authentication using Supabase Auth backed by strict Row Level Security (`is_admin()` policy) on all PostgreSQL tables.
- **Nila-Compliant Sales Invoice Engine**: Dynamic invoice creation with auto-calculated discounts, tax PIN identifiers, batch/expiry verification blocks, and MPESA remittance slips.
- **Manufacturer Purchase Order Builder**: Procurement ledger supporting m …