Commit 85319db6 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Expose proration settings in /settings/system → التسجيل tab

Add allow_proration (boolean) and renewal_day (number, 1-28) to the
enrollment settings schema with descriptive hints so admins can find and
toggle partial monthly payment from the UI.
Co-Authored-By: 's avatarClaude Sonnet 4.6 <noreply@anthropic.com>
parent 9df1341d
......@@ -82,6 +82,8 @@ class SystemSettings extends Component
'coupon_max_uses_default' => ['type' => 'number', 'label' => 'الحد الافتراضي لاستخدام الكوبون', 'step' => '1', 'min' => 1],
],
'enrollment' => [
'allow_proration' => ['type' => 'boolean', 'label' => 'تفعيل الدفع النسبي (باقي الشهر فقط)', 'hint' => 'عند التفعيل: اللاعب يدفع فقط الأيام المتبقية من الشهر حتى يوم التجديد'],
'renewal_day' => ['type' => 'number', 'label' => 'يوم التجديد الشهري', 'step' => '1', 'min' => 1, 'max' => 28, 'hint' => 'اليوم الذي يتجدد فيه الاشتراك كل شهر (مثال: 1 = أول الشهر)'],
'allow_waitlist' => ['type' => 'boolean', 'label' => 'تفعيل قائمة الانتظار'],
'auto_promote_waitlist' => ['type' => 'boolean', 'label' => 'ترقية تلقائية من قائمة الانتظار'],
'require_medical_report' => ['type' => 'boolean', 'label' => 'إلزام تقرير طبي'],
......@@ -162,6 +164,8 @@ class SystemSettings extends Component
'early_enrollment_days' => '14',
'coupon_max_uses_default' => '100',
// enrollment
'allow_proration' => '0',
'renewal_day' => '1',
'allow_waitlist' => '1',
'auto_promote_waitlist' => '1',
'require_medical_report' => '0',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment