DietBox Operations — Clinical Meal Subscriptions & Dynamic PDF Engine
Calculating calories and macros manually for 1,000+ active subscribers while designing daily kitchen box labels took 3+ hours daily with recurring meal mix-ups. Built an automated .NET 8 subscription engine with sub-100ms QuestPDF label generation.

Operational Benchmarks
Measurable impact achieved in production.
Active Subscribers
PDF Generation Time
Labeling Errors
Daily Saved Kitchen Time
Operational Challenges
Critical bottlenecks prior to system deployment
- Automated macro calculation customized to subscriber medical profiles.
- Ultra-fast batch generation of thermal box labels and meal plan PDFs.
- Managing recurring subscription renewals, payments, and daily branch delivery routes.
- Strict Clean Architecture designed for seamless future mobile integrations.
Operational Transformation
Direct before vs after production benchmarks
Meal Label Preparation
Dietary Accuracy
Architectural Decisions & Trade-offs
Engineered design choices, technical rationale, and evaluated trade-offs
Adopted QuestPDF over HTML-to-PDF Wrappers
Architectural Rationale:
Generated vector PDFs via pure C# fluent API 10x faster with zero headless browser memory overhead.
Strict Clean Architecture Separation
Architectural Rationale:
Isolated nutritional domain rules from DB adapters for painless unit testing and scalability.
Data Flow & Integration Pipeline
Live visual pipeline demonstrating real-time data exchange across services, AI engines, and databases.
Production Interfaces & Modules
Comprehensive architectural walkthrough of live dashboards, portals, and background engines.

Landing Page - Hero Section & Value Proposition
Customer UI & Landing PageWelcome hero section for DietBox displaying the brand value proposition, interactive meal cards with nutritional macros (calories, protein, keto), and CTA buttons.

Landing Page - Core Features & Benefits
Customer UI & Landing PageOverview of DietBox core competitive advantages including 100% healthy meal quality, reliable scheduled delivery, and flexible customizable subscription plans.

Landing Page - Monthly Menus & Plans Showcase
Customer UI & Landing PageInteractive showcase of monthly meal menus and subscription packages (Full, Seafood, Chicken, Meat) with click-to-zoom preview modal.

Detailed Menu Pricing Matrix & Macro Specs Modal
Customer UI & Landing PageHigh-resolution modal previewing the premium package pricing matrix across days and meal counts, standard meal macro composition (protein, carbs, veggies), add-ons, and branch QR codes.

Staff & Management Authentication Portal
Authentication & SecuritySecure authentication portal for branch managers, supervisors, and kitchen operators with role-based access control.

Admin Dashboard - Comprehensive Reports & Analytics Hub
Dashboard & AnalyticsComprehensive analytical command center with branch/date filters and dedicated tabs for financial KPIs, subscriber growth, branch performance, and kitchen waste metrics.

Admin Dashboard - Menu & Catalog Management
Menu & Catalog ManagementCatalog management interface allowing admins to create, update, and remove digital menu cards and monthly meal plans.

Admin Dashboard - Daily Branch Closing & Channel Settlement
Financials & POS ReconciliationDaily branch cash & POS reconciliation module tracking cash, Mada, and delivery platforms (Jahez, Hungerstation, Ninja, Noon, Keeta) with Excel export.

Admin Dashboard - Detailed Expenses & Tax Analysis
Financials & Tax AccountingDetailed expense tracking dashboard breaking down VAT-taxable vs exempt expenses, total spending KPIs, category filters, and bulk Excel export.

Admin Dashboard - General & Operational Expense Entry
Financials & BookkeepingEntry form for operational expenses and administrative overhead with VAT taxation status, branch allocation, and payment method selection.

Admin Dashboard - Financial Allocations & Provisions Sinking Fund
Financials & Sinking FundsFinancial sinking fund module to set aside recurring liabilities (payroll, rent) with target progression bars and scheduled funding transfers.

Admin Dashboard - Snacks Inventory & Consumption Report
Inventory & OperationsComprehensive snack inventory tracker reporting inbound supplies, subscription withdrawals, spoiled units, and direct retail sales.

Admin Dashboard - Staff Meal Custody & Allowance Entry
Operations & Staff ManagementInternal staff meal consumption logger to record worker meal allowances, dish types, and reconcile against employee limits.

Admin Dashboard - Staff & Branch Workers Management
Staff & HR ManagementBranch staff roster allowing administrators to manage chef/worker profiles, base compensation, daily complimentary meal limits, and active status.

Admin Dashboard - Kitchen Food Waste & Spoilage Logging
Kitchen Operations & Waste ControlKitchen food spoilage logging interface tracking wasted ingredients in grams with root cause reasons to minimize inventory loss.

Admin Dashboard - Payroll & Staff Account Overview
Payroll & HR ManagementEmployee payroll profile module with automated meal deduction calculations and instant payroll slip generation.

Admin Dashboard - Monthly Payroll Slips, Loans & Incentives
Payroll & HR ManagementComplete branch monthly payroll ledger featuring salary advances (loans), bonuses, penalties, and net compensation slips.

New Subscription Wizard - Step 1: Customer Information
Subscription Wizard & CRMStep 1 of the subscription registration wizard capturing customer contact details, phone verification, and schedule start date.

New Subscription Wizard - Step 2: Package Selection Dropdown
Subscription Wizard & PlansPlan selection step displaying standard meal subscription tiers alongside the fully custom plan option.

New Subscription Wizard - Custom Plan Builder & Meal Quantities
Subscription Wizard & CustomizerInteractive custom meal builder enabling users/agents to adjust meal quotas by protein type and select subscription duration.

New Subscription Wizard - Fixed Package Duration & Meal Count
Subscription Wizard & PlansFixed plan configuration step to choose daily meal frequencies and subscription duration with automated macro/price recalculation.

New Subscription Wizard - Add-ons & Dynamic Price Calculation
Subscription Wizard & PricingMeal add-on selector (healthy burgers, sandwiches) with dynamic price calculation engine and authorized price override.

New Subscription Wizard - Step 3: Branch, Payment & E-Signature
Subscription Wizard & Contract SigningFinal step of subscription wizard capturing branch fulfillment, payment method, policy acceptance, and digital canvas signature.

QuestPDF Subscription Contract - Plan Specs & Macro Box
PDF Documents & Printables (QuestPDF)Officially generated QuestPDF contract detailing customer subscription specifics, QR code tracking, and standard meal nutritional macros.

Thermal POS Simplified Tax Invoice with ZATCA QR Code
POS Invoicing & ZATCA Compliance80mm thermal POS receipt layout generating ZATCA-compliant Base64 TLV QR codes for simplified tax invoices.

Full QuestPDF Subscription Contract with Embedded E-Signature
PDF Documents & Legal ContractsComplete legal contract document generated via QuestPDF embedding live customer e-signature, terms of suspension, and ZATCA compliance.

Subscription Quick Actions - Extend Days, Adjust Balance & WhatsApp
Subscription Management & ActionsQuick management console for extending subscription duration, manually modifying remaining meal balances, and sending WhatsApp invoices.

Customer Deletion & Soft-Delete Reason Audit Modal
Customer Management & AuditSafe soft-deletion confirmation dialog requiring a detailed justification for audit trails and manager oversight.

POS Daily Meal Pickup - Real-time Customer Search
POS Daily Pickup & OperationsCounter POS lookup interface with fast phone number autocomplete for processing daily meal pickups and checking active status.

Admin Dashboard - Meal Pickup History & Audit Log
Operations & Audit LoggingDetailed audit log recording every meal handed over across branches with timestamps, meal types, and CSV export capabilities.

Customer Retention CRM - Automated Milestone Follow-ups
CRM & Retention AutomationRetention CRM system prompting staff to contact subscribers at key journey milestones (Day 3 check-in, renewal reminders) via WhatsApp.

Admin Dashboard - Meal Items & Recipe Catalog
Catalog & Master DataMaster data table for configuring meal items, individual pricing, food categories, and meal building blocks.

Admin Dashboard - Subscription Packages Catalog
Plans & Catalog ManagementCentral package management catalog for creating and updating subscription tiers, meal rules, and plan pricing.

Admin Dashboard - System Audit Trail & Activity Log
Security & Audit TrailsImmutable audit trail logging all staff actions (subscription creation, deletions, balance overrides, soft deletes) for accountability.
"If rebuilt, I would integrate directly with InBody smart scales via Webhooks to adjust subscriber meal plans automatically based on weekly biometric scans."
— Mahmoud Talaat, Founder & Lead Systems Architect