Megathy.
Multi-vendor grocery and food delivery operations platform for Eastern Saudi Arabia. Built as a unified Laravel backend connecting customers, pickers, drivers, dispatchers, and administrators.
Illustrative Megathy multi-vendor operations dashboard — representative sample data.
One unified operational core for high-velocity delivery.
Megathy needed one central operations backend for multi-vendor grocery chains and restaurant brands in Eastern Saudi Arabia — not fragmented, disconnected portals. The system needed to manage the entire delivery journey: customers browse catalogues, book scheduled delivery sessions, pay via cash or Payfort card checkout, track delivery drivers, earn loyalty rewards, and chat with customer support.
Behind the customer storefront, operational personnel assign store collectors and route delivery drivers, while native iOS and Android companion apps consume real-time synchronized JSON APIs.
End-to-End Full-Stack Ownership
As full-stack developer, I owned the backend architecture, administrative tooling, and mobile API endpoints consumed by production mobile clients.
- Architected and built Laravel APIs and admin dashboards for catalogue, carts, orders, scheduled delivery sessions, loyalty rewards, and customer service chat.
- Implemented a multi-store grocery model (cities, delivery zones, retail stores, inventory categories, products, favorites, promo coupons) alongside restaurant ordering with add-on options and opening schedules.
- Constructed role-specific workflows: collector item-picking, dispatcher assignment of drivers, driver GPS telemetry updates, and order state machines.
- Integrated Payfort credit card tokenization, dual cash/card payments, customer loyalty balances, Twilio SMS/OTP, and push notifications via FCM and Pushwoosh.
- Created operational reporting tools using server-side DataTables, Excel spreadsheet exports, DomPDF tax invoices, and Spatie granular role-based permissions.
Engineering Complex Real-Time Ops
- Hybrid Multi-Store Catalogue: Supermarkets and quick-service restaurants share one catalogue core but distinct business logic. Stocked SKUs, multi-tier categories, and volume promotions live side-by-side with perishable restaurant meals, custom modifiers, and open-hour gates.
- Scheduled Delivery Sessions & Payfort: Time-slot orders must book, queue, lock, and transition to live fulfillment pipelines via cron and queued workers. Payment integrity had to be preserved across refunds, coupons, and driver tips.
- Synchronized Multi-Role State Machine: Customer, picker, dispatcher, and driver actions all mutate the exact same order state. Push notifications, Twilio OTP checks, and live chat updates ensure all field staff and customers stay in sync.
Role-Separated APIs & Fulfillment Flow.
A high-concurrency Laravel core powers dedicated APIs for 4 distinct client profiles, backed by MySQL, Payfort payment gateways, push services, and transactional SMS verification.
System Architecture: Customer, Collector, Dispatcher, and Driver surfaces connect to Laravel core with Payfort, FCM, and Twilio infrastructure.
End-to-End Fulfillment Lifecycle
Fulfillment Pipeline: Customer orders pass through slot validation, Payfort capture, item picker validation, and dynamic driver routing.
Backend & Checkout Architecture
The core Laravel system orchestrates multiple operational subsystems:
- Role-Separated API Layer: Dedicated controllers and resource transformers for customer shoppers, store pickers, logistics dispatchers, and couriers.
- Multi-Channel Payment Processing: Support for Payfort card pre-authorization, dual-split payments (loyalty points + credit card), and cash-on-delivery tracking.
- Queued Background Workers: Automated slot release timers, expiring cart cleanups, push alert broadcasts, and daily financial reconciliation.
- High-Scale Admin Operations: Server-side paginated DataTables handling hundreds of thousands of historical orders with one-click Excel and PDF reports.
Third-Party Ecosystem
Integrated critical commerce and communication infrastructure:
- Payfort Gateway: Secure tokenized card payments, 3D-Secure authentication, and automated refund handling.
- FCM & Pushwoosh: Low-latency push notifications notifying customers of order acceptance, picker substitutions, and driver arrival.
- Twilio SMS Gateway: Realtime verification codes for account security, driver onboarding, and urgent ops alerts.
- Spatie Permissions: Granular access control protecting administrative finance settings, inventory pricing, and customer records.
Interfaces Built for High-Volume Fulfillment.
Technology & Tooling.
Delivered a robust, high-availability multi-vendor delivery stack with 5 role-specific workflows spanning catalogue, scheduling, payments, loyalty, chat, and field operations APIs. The platform powers live on-demand grocery and restaurant ordering in Eastern Saudi Arabia.