scriptometry

PRJ-03/Case study · The Gala

Weddings and events, booked in one place.

A two-sided marketplace for Saudi Arabia: customers book halls, photographers, decor and caterers; providers manage bookings, payments and payouts; staff run it all from one control panel. Taken over, secured and rebuilt for growth.

Core stack
FlutterLaravelReactAWSMyFatoorahTabbyTamaraFirebase
/work/the-gala
§ 01Challenge

From phone calls to one booking.

Booking a wedding hall, a photographer, stage decor or a caterer in Saudi Arabia still happens over phone calls and transfers. The Gala puts it in one place for customers, and gives providers one channel for bookings, payments and payouts.

A first version existed, built by a previous vendor. The founders needed a team to take over every part of it, make it safe, and build it into a platform ready to grow.

That meant five products moving together: a customer app, a partner app, a provider web dashboard, a staff control panel and the backend behind them all.

§ 02What we built

Two apps, a dashboard, a control panel, one backend.

Everything from the customer’s first search to the provider’s payout and the team’s back office.

BUILD SPECPRJ-03/work/the-gala

What we built

  1. Customer app: discover providers, pick a package and date, book, pay and track the booking
  2. Partner app: contract, services, availability, booking approvals, coupons, earnings and withdrawals
  3. Provider web dashboard: the partner app’s tools on the web
  4. Control panel: executive dashboard, full provider and customer views, refunds, feature flags, audit log
  5. One versioned Laravel API with a single booking state machine and one pricing authority
  6. Card payments through MyFatoorah, and Tabby and Tamara instalments built and tested
  7. Arabic PDF invoices delivered by email and WhatsApp, and Firestore chat
  8. AWS cloud with separate environments, backups and structured logs; the Arabic-first website

Built with

Apps
FlutterGetXFirebaseCodemagic
Backend
LaravelPHPMySQLSanctum
Web
ReactTypeScriptInertia.jsTailwind CSSBlade
Payments
MyFatoorahMadaApple PayTabbyTamara
Cloud
Elastic BeanstalkRDSS3CloudWatchGitHub Actions
§ 03Modules

Every module, five products.

Two apps, a provider dashboard, a control panel and the backend that ties them together.

  1. Customer app: discover

    • Home with banners, categories, featured offers and recently browsed
    • Providers by city and subcategory, sorted by rating
    • Provider pages with packages, reviews and a gallery of past work
    • Search across every provider
    • Favourites, and share links that open straight to an offer
    • Guest browsing, with sign-in only when needed
  2. Customer app: book and pay

    • Calendar availability, time, quantity and notes
    • Home-visit option with its own fee
    • Deposit or full payment, coupons and a price summary with VAT
    • Booking requests: the provider approves, then the customer pays
    • A four-stage journey tracker with payment deadline and cancellation
    • Invoices in the app, chat with the provider, ratings and reviews
  3. Customer app: account

    • Phone sign-in with one-time codes; Google and Apple sign-in
    • Profile, language switch and account deletion
    • Notifications with read state and badges
    • Coupons, contact us and policy pages
    • Forced updates and live booking updates
  4. Partner app

    • Accept the current provider contract version before starting, and download it as a PDF
    • Home metrics: earnings and bookings by stage
    • Bookings by status: accept or reject requests within a deadline, complete or cancel
    • My Services: a two-step wizard for price, deposit, home visit, city, media and cancellation policy
    • Availability slots and provider coupons
    • Earnings per booking, transactions and withdrawal requests
    • Reviews, chat with customers and a portfolio of work samples
  5. Provider web dashboard

    • Booking approvals and status changes
    • Offers with galleries, services and appointments
    • Coupons, earnings and withdrawals
    • Chat, notifications, profile and language
  6. Control panel

    • Executive dashboard: growth, bookings, operations, quality and revenue, with period comparison
    • Full provider and customer profiles; provider onboarding with documents and bank details
    • Organizations with several branches, and a change-request workflow
    • Offer review queue, bookings with staff actions, coupons and redemptions
    • Refunds, operational alerts, feature flags and app versions
    • Roles and permissions, push broadcasts, content and policies, exports
  7. Bookings and money

    • One booking state machine, the only place a booking’s state can change
    • Automatic payment and approval reminders, and expiry when time runs out
    • One price calculator and a frozen financial snapshot for every booking
    • Coupon rules with usage caps, released on refund
    • Settlement checks and scheduled payment reconciliation
    • Refunds with approve, retry and manual transfer
  8. Payments

    • MyFatoorah cards: Mada, Visa, Mastercard and Apple Pay
    • Tabby and Tamara instalments behind one gateway layer, built and tested
    • A forward-only payment ledger
    • Verified, de-duplicated webhooks, re-confirmed with the gateway
    • Arabic PDF invoices sent by email and WhatsApp
  9. Platform

    • A versioned API with one response format and forced-update checks
    • Bilingual push, SMS one-time codes, email and WhatsApp
    • Hybrid chat: relationships in MySQL, messages in Firestore
    • Provider badges, from Verified to Top Rated, some earned automatically each night
    • Campaign attribution and server-side analytics
    • The Arabic-first marketing website, rebuilt on a new design system
§ 04How it works

One backend, five products.

Two Flutter apps, a provider dashboard and a React control panel on one Laravel platform, with cards and instalments behind one gateway layer.

  1. Clients
    • Customer app
    • Partner app
    • Provider dashboard
    • Control panel
  2. Platform
    • Laravel API
    • Booking state machine
    • Price calculator
    • Audit log
  3. Data
    • MySQL on RDS
    • S3 media and invoices
    • Firestore chat
    • Push
  4. Payments
    • MyFatoorah cards
    • Tabby and Tamara
    • Verified webhooks
PRJ-03SYSTEM MAP
  1. One booking state machine

    Every booking moves through one forward-only state machine with reminders and expiry, replacing scattered status fields.

  2. Two payment rails

    Cards and instalments share one gateway layer and one price calculator, so a booking costs the same however it is paid. Webhooks are idempotent and arrive in any order safely.

  3. A control panel built for operators

    React and TypeScript screens for the team’s daily work, with every sensitive action permission-checked and written to an append-only audit log.

  4. Arabic first

    Server-composed text in both languages, push messages in each account’s language, and invoices rendered so Arabic shapes correctly.

  5. Cloud and releases

    Staging and production on Elastic Beanstalk with separate databases and buckets, deploys from GitHub Actions, and app builds through Codemagic.

  6. Run like a product team

    Issues routed to the right repository automatically, build and deploy alerts in one channel, QA plans and post-mortems, and a knowledge base for every repository.

§ 05Security and quality

Taken over, then locked down.

A security review on takeover, then a hardening sprint before growth.

  1. Least privilege

    Cloud and database access cut down to what each service needs, separate for staging and production.

  2. Sign-in

    Rate-limited sign-in and one-time codes, verified Google and Apple tokens, and suspended accounts properly shut out.

  3. Permissions

    Fine-grained roles enforced on every route, with separate permissions for exports, identity documents and bank details.

  4. Data

    Bank details encrypted at rest, invoices and documents behind short-lived signed links, personal data masked in logs, anonymised on account deletion.

  5. Payments

    Client amounts never trusted, webhooks verified and de-duplicated, and every payment re-confirmed with the gateway before a booking is marked paid.

  6. Recoverable

    Database deletion protection, automated and tiered backups, and automated tests across the backend and both apps.

§ 06Outcome

Live, and ready to grow.

Both apps are live in Saudi Arabia in Arabic and English, with a rebuilt control panel, a provider dashboard, Tabby and Tamara instalments built, tested and ready to switch on, and a platform the founders can scale with confidence. Our team runs it today.

Five products, one platformcustomers, providers and staff, in Arabic and English
§ 08Start/brief.ts

Building something like this?

Tell us about it. We come back with questions and the next step: a short discovery call.

Book a call →
What do you need?
No spam. No sales sequences.