diff --git a/app/Middleware/QuotaMiddleware.php b/app/Middleware/QuotaMiddleware.php index 6eb38d0..fa09e02 100644 --- a/app/Middleware/QuotaMiddleware.php +++ b/app/Middleware/QuotaMiddleware.php @@ -73,7 +73,7 @@ final class QuotaMiddleware $used = (int)$sub['invoices_used_this_month']; $limit = (int)$sub['max_invoices_per_month']; - if ($used >= $limit && false) { // BYPASS QUOTA FOR TESTING + if ($used >= $limit) { json_error('لقد وصلت للحد الأقصى من الفواتير المسموحة هذا الشهر (' . $limit . ' فاتورة). يرجى ترقية باقتك.', 429, [ 'quota_type' => 'invoices', 'used' => $used, diff --git a/app/middleware/QuotaMiddleware.php b/app/middleware/QuotaMiddleware.php index 6eb38d0..fa09e02 100644 --- a/app/middleware/QuotaMiddleware.php +++ b/app/middleware/QuotaMiddleware.php @@ -73,7 +73,7 @@ final class QuotaMiddleware $used = (int)$sub['invoices_used_this_month']; $limit = (int)$sub['max_invoices_per_month']; - if ($used >= $limit && false) { // BYPASS QUOTA FOR TESTING + if ($used >= $limit) { json_error('لقد وصلت للحد الأقصى من الفواتير المسموحة هذا الشهر (' . $limit . ' فاتورة). يرجى ترقية باقتك.', 429, [ 'quota_type' => 'invoices', 'used' => $used, diff --git a/public/shell.php b/public/shell.php index 2560064..52abc74 100644 --- a/public/shell.php +++ b/public/shell.php @@ -1751,14 +1751,20 @@ x-text="parseFloat(inv.grand_total).toLocaleString() + ' JOD'">