
This project is a comprehensive law office management and legal services web system featuring a public-facing website, a full-featured administrative dashboard, and a dedicated client portal.
Public Website & Legal Utilities: Includes landing, about, services, service details, blog, FAQ, and consultation request pages, alongside tools such as an end-of-service calculator, downloadable contract templates with download tracking, a dynamic sitemap.php, robots.txt, and an installation wizard (install.php).
Shared Includes & Frontend Assets: The includes/ directory provides database configuration (config.php), helper functions (functions.php), and shared templates for tax invoices and e-signature certificates, while assets/ houses stylesheets and self-contained JavaScript modules including local QR code generation and a Canvas-based signature pad without external CDN dependencies.
Protected Uploads & Database Migrations: uploads/ separates public contract templates from case documents restricted behind a controlled download gate (download.php), while database/ contains the base schema (schema.sql) and incremental migrations (update_v2.sql through update_v8.sql) covering roles, notifications, documents, messaging, billing, e-signatures, activity logs, and opposing party details.
Admin Dashboard (admin/): Supports role-based user management, clients, cases (with assigned lawyer, documents, and unified timeline), internal messaging, daily scheduling, financial tracking (case fees, case/daily expenses, salaries, and Phase 1 ZATCA/Fatoora-aligned tax invoices), e-signature workflows and certificates, activity logs, database backups, content management, and company settings.
Client Digital Portal (portal/): Enables clients to view their cases, fees, and appointments, upload and inspect case documents, exchange case-specific messages with the office, view/print/save tax invoices as PDF, and sign requested documents while accessing signing certificates.