From 501fd96dc18a69f9a9e3fd4dd9351d3c7126bf5a Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sun, 3 May 2026 18:01:58 +0300 Subject: [PATCH] Update: 2026-05-03 18:01:58 --- public/index.php | 5 +- public/shell.php | 127 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 130 insertions(+), 2 deletions(-) create mode 100644 public/shell.php diff --git a/public/index.php b/public/index.php index 12ab405..89f328e 100644 --- a/public/index.php +++ b/public/index.php @@ -30,7 +30,8 @@ if (isset($routes[$route])) { if (str_starts_with($route, 'v1/')) { json_error("Not Found: {$route}", 404); } else { - // Fallback for non-API requests (Frontend) - echo "

Musadaq API - Pure PHP

Running on simple architecture.

"; + // Not an API request — serve the SPA shell + include __DIR__ . '/shell.php'; + exit; } } diff --git a/public/shell.php b/public/shell.php new file mode 100644 index 0000000..cb13f7c --- /dev/null +++ b/public/shell.php @@ -0,0 +1,127 @@ + + + + + + مُصادَق | لوحة التحكم + + + + + + + + + +
+ + + + +
+
+

+
+
+ +
+ +
+
+
+

إجمالي الفواتير

+

1,240

+
+
+

قيد المعالجة

+

12

+
+
+

تم الاعتماد

+

1,228

+
+
+
+ + +
+
+ + + + + + + + + + + +
الاسمالبريد الإلكترونيالدور
+
+
+
+
+
+ + + +