From f50d1d481dfbe4b660b9acf90c2a445b1acdaa8b Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Thu, 4 Jun 2026 18:00:15 +0000 Subject: [PATCH] Add Credit Accounting section to game management - New table: platform_credits (id, platform_id, credits_purchased, credit_date, payment_method, notes) - API: credits_list, credits_create, credits_update, credits_delete actions (admin-only) - Admin form: Credit Accounting box showing Available Credits total; Manage Credits button opens modal - Modal: Total Credits header, add/edit/delete entries with credits, date, payment method, notes - Game list cards: show live credit total per game (cyan, loads async) Co-Authored-By: Claude Sonnet 4.6 --- admin/index.php | 204 +++++++++++++++++++++++++++++++++++++++++++++- api/platforms.php | 66 +++++++++++++++ 2 files changed, 269 insertions(+), 1 deletion(-) diff --git a/admin/index.php b/admin/index.php index 421b5db..5b08159 100644 --- a/admin/index.php +++ b/admin/index.php @@ -845,6 +845,22 @@ tr:hover td{background:rgba(255,255,255,.015)} + +
+
+
💳 Credit Accounting — Admin Only
+
+
+
+
Available Credits
+
+
+ +
+
+
@@ -1015,6 +1031,63 @@ tr:hover td{background:rgba(255,255,255,.015)}
+ + +