Moataz MohammadyWeb & Software Engineer
arrow_backBack to all projects
Case Study · Custom Web Application

One System to Run an Entire Online Quran Academy

A full rebuild of an aging management system for an academy that teaches one-to-one Quran and Islamic studies classes over Zoom and Skype to families around the world. From the first trial request to the teacher's salary and the monthly accounts, every step now lives in one secure, bilingual platform.

Role
Architecture, development & data migration
Stack
Laravel 13 · Filament · Livewire
Status
Built · preparing go-live
lockacademy.example/teacher/today
Teacher portal
Today's Classes
6
classes
4.5h
teaching
A
Adam
Tajweed · Surah Al-Mulk
check_circleCompleted
M
Maryam
Noorani Qaida · Lesson 12
videocamIn class
Y
Yusuf
Memorization · Juz 30
scheduleUpcoming
chatFamily notified on WhatsApp automatically play_arrowStart class

Illustrative screen with sample data; the real system holds private family data.

16
business domains
3
portals: admin, teacher, parent
290+
business operations (Actions)
3,400+
automated tests
160
planned & delivered tasks
2
languages: Arabic & English
The Challenge

A growing academy held back by an old system

The academy ran on a hand-written PHP system built years ago. It worked, but every new requirement made it more fragile, and the team relied on memory and manual work to keep it going.

pin

Magic numbers everywhere

Statuses stored as codes like 17 or 8 that only the original developer understood.

schedule

Time-zone confusion

Teachers in Egypt, students in America, Europe and Australia: one wrong hour means a missed class.

payments

Manual billing & payroll

Invoices, hour packages and teacher salaries tracked by hand and spreadsheets.

shield

Security gaps, no tests

No automated tests and weak access control, so every change was a risk.

The Solution

The whole business cycle, connected

Each step feeds the next automatically, so nothing is entered twice and nothing falls through the cracks.

  1. person_add 01 Lead Trial request from the website
  2. family_restroom 02 Family Guardian & students registered
  3. calendar_month 03 Schedule Fixed weekly slots, no clashes
  4. videocam 04 Class Daily sessions run by the teacher
  5. menu_book 05 Lesson Attendance & progress recorded
  6. receipt_long 06 Billing Monthly or prepaid hour packages
  7. credit_card 07 Payment Stripe & PayPal online
  8. account_balance 08 Payroll & Accounts Teacher salaries & the books
Three Portals

The right screen for every person

Each role sees only what it needs, protected by fine-grained roles and permissions.

admin_panel_settings Filament

Admin Panel

For managers, HR, sales & accounts

  • checkLeads pipeline and follow-ups
  • checkFamilies, students & teachers
  • checkSchedules, sessions & substitutions
  • checkInvoices, payments & payroll
  • checkAccounting & live dashboards
co_present Livewire

Teacher Portal

Everything a teacher needs for the day

  • checkToday's classes in the teacher's own time zone
  • checkStart the class & notify the family
  • checkLesson notes, tests & progress reports
  • checkHours, salary slip & leave requests
  • checkCurriculum library
family_restroom Livewire

Parent Portal

Peace of mind for the family

  • checkSchedule in the family's local time
  • checkAttendance & progress per child
  • checkInvoices & secure online payment
  • checkReports, certificates & library
  • checkComplaints & refer-a-friend
16 Modules

Everything the academy does, in one place

key

Identity & Access

Logins, roles, permissions, activity log

tune

Settings & Lookups

Countries, currencies, packages, branding

campaign

CRM & Leads

Trial requests via a protected public API

groups

Families & Students

Full student lifecycle, from trial to graduation

badge

Staff & HR

Profiles, availability, contracts

calendar_month

Scheduling

Weekly timetable with clash detection

videocam

Class Operations

Daily sessions, states, substitutes

library_books

Curriculum & Library

Subjects, lessons, shared resources

trending_up

Academic Progress

Reports, tests, certificates, evaluations

receipt_long

Billing

Monthly invoices & prepaid hour packages

credit_card

Payments

Stripe, PayPal & manual, with webhooks

payments

Payroll

Hours, adjustments, leave, salary slips

account_balance

Accounting

Chart of accounts, vouchers, statements

forum

Communication

WhatsApp, email, tasks, announcements

monitoring

Reports & Dashboards

KPIs for management at a glance

dns

System & Migration

Backups, queues, legacy data import

Under the Hood

Built to be trusted with money, time and children

  • schedule

    Three clocks per class

    Everything is stored in UTC and shown in the teacher's, the admin's and the student's local time, including daylight-saving changes.

  • payments

    Money done right

    Exact decimal amounts with an ISO currency on every value; never floating-point maths. Stripe and PayPal webhooks are signature-verified.

  • verified_user

    Permission on every action

    A policy for every model and permissions like invoices.mark_paid, attached to roles.

  • bolt

    Clean, event-driven core

    Every write is a single Action class inside a transaction; side effects like WhatsApp messages run as queued events.

  • translate

    Truly bilingual

    Full Arabic (RTL) and English interface with a language switcher; tests fail if any text is left untranslated.

  • move_up

    Safe migration from the old system

    12 importers move years of legacy data, then a verification step checks counts and totals before go-live.

app/Actions/Billing/MarkInvoicePaid.php
final class MarkInvoicePaid
{
  public function __invoke(Invoice $invoice, Money $amount): Payment
  {
    Gate::authorize('invoices.mark_paid', $invoice);

    return DB::transaction(function () use ($invoice, $amount) {
      $payment = $invoice->payments()->create([
        'amount'   => $amount->decimal(),
        'currency' => $amount->currency(),
      ]);
      $invoice->update(['status' => InvoiceStatus::Paid]);

      InvoicePaid::dispatch($invoice); // → queued WhatsApp + email

      return $payment;
    });
  }
}
3,400+
Pest tests
Level 6
Larastan
54
Policies
PHP 8.4Laravel 13FilamentLivewireTailwind CSS 4MySQL 8Redis & QueuesDockerStripePayPalWhatsApp APIPestLarastan
How It Was Built

Planned first, then delivered task by task

01

Analyse

Studied the old system and the daily work of the team, then wrote every business rule down with an ID, so nothing depends on memory.

02

Plan

Split the work into 19 phases and 160 small tasks with clear dependencies, each one a reviewed pull request with its own tests.

03

Build & migrate

Delivered the modules in order, imported the legacy data into the new structure and verified it, ready for a safe switch-over.

Running an academy, a training centre or a service business?

I can build you a system that fits the way you actually work: schedules, billing, payments, staff and reports in one place.