Skip to content

Case study · Our own product

Agli Tareekh: case management for Pakistan's advocates.

A subscription SaaS that keeps a law firm's hearing dates, case files, team, clients and fees in one place, with AI that drafts first versions of legal documents for the lawyer to review.

Product
Multi-firm SaaS
Our role
Product, design, engineering, hosting
Built with
Laravel 13 · PHP 8.3 · MariaDB
Status
Live at aglitareekh.com

The challenge

The next hearing date runs a lawyer's week.

"Agli tareekh" means the next hearing date. For an advocate, it decides what gets prepared, who goes to which court and what the client hears. In a busy chambers, those dates, the case files, the juniors' work and the fees owed easily end up spread across diaries, phones and spreadsheets.

We set out to give a firm one place for all of it, simple enough for a senior advocate and a junior on a phone, and safe enough to hold every client's details.

Before
  • Hearing dates kept in diaries and on phones
  • Case files spread across folders and chats
  • Fees and expenses tracked by hand
  • Clients calling to ask where their case stands
With Agli Tareekh
  • The whole firm's week of hearings on one dashboard
  • Every case's files, tasks and progress together
  • Fees, invoices and office expenses in one place
  • A client portal with progress and the next hearing

What we built

One system for the whole chambers.

1

Cases and hearings

Each case has a stage tracker from intake to decision, its files, hearings, progress notes and tasks. The dashboard shows the week's hearings across the firm.

Dashboard with this week's hearings, open tasks and cases by stage (sample data)
2

AI-assisted drafting

Draft a Case turns a case's facts into a first draft of a plaint, written statement, bail application, writ petition, legal notice or family suit, on an editable legal-size page with Word export. It never invents case law: any law-report citation is flagged for the lawyer to verify.

Drafting screen with a plaint on a legal-size page and related cases from the firm's records (sample data)
3

Client portal

Clients sign in on their phone with a PIN or an emailed code to see where their case stands, the next hearing, shared documents and their fee, and can call their lawyer in one tap.

Mobile client portal showing a case progress timeline and the next hearing (sample data)

Team roles

Owners see everything, advocates see their own and their juniors' cases, juniors see only what is assigned to them and never the money.

Fees and invoices

Agreed fees, payments received, invoices and office expenses, with profit per case.

Subscriptions

Free and paid plans, with payments by bank transfer, JazzCash or Easypaisa approved in an owner console.

Built like a product we have to support ourselves, because we do.

Firm-level data isolation

Every record belongs to a firm and is filtered automatically. Tests confirm one firm can never open another firm's cases, files, clients or invoices.

Tested, automatic deploys

Every change runs the test suite in GitHub Actions, then deploys to the server with migrations and a maintenance-mode safety net.

Careful with client data

AI drafting runs through a provider whose terms exclude training on inputs. Website statistics are cookie-free, with no IP addresses stored.

Low running cost

No paid SMS or messaging APIs: client PINs are shared through the lawyer's own WhatsApp or an email code.

Laravel 13PHP 8.3MariaDBTailwind CSS v4Alpine.jsPhpWordLLM APIGitHub Actions

Screens show a fictional demo firm with sample data.

Need a platform like this for your industry?

We build multi-user SaaS products with roles, portals, billing and AI features. Tell us about yours.