@if(isset($defaultSettings))

الإعدادات الافتراضية للنظام

  • نسبة عمولة المضيف: {{ $defaultSettings['owner_percentage'] }}%
  • نسبة عمولة الزبون: {{ $defaultSettings['customer_fee_percentage'] }}%
  • الحد الأقصى للموظفين: {{ $defaultSettings['employee_count'] }}
  • الحد الأقصى للعقارات: {{ $defaultSettings['count_of_units'] }}
@endif

بيانات الحساب والاشتراك

{!! Form::label('tbl_user_id', ' ' . __('models/subscriptions.fields.tbl_user_id', [], 'ar') . ':', [], false) !!} {!! Form::text('user', $subscription->user?->full_name, ['class' => 'form-control bg-light', 'id' => 'user', 'readonly']) !!}
{!! Form::label('plan', ' ' . __('models/subscriptions.fields.plan', [], 'ar').':', [], false) !!} {!! Form::select('plan', __('models/subscriptions.plan', [], 'ar'), null, ['class' => 'form-control select2', 'required', 'id' => 'plan', 'style' => 'width: 100%;']) !!}
{!! Form::label('reserved_payment_mode', ' ' . __('models/subscriptions.fields.reserved_payment_mode', [], 'ar').':', [], false) !!} {!! Form::select('reserved_payment_mode', __('models/subscriptions.reserved_payment_mode', [], 'ar'), null, ['class' => 'form-control select2', 'required', 'style' => 'width: 100%;']) !!}

الإعدادات المالية والحدود

{!! Form::label('owner_percentage', ' ' . __('models/subscriptions.fields.owner_percentage', [], 'ar').':', [], false) !!}
{!! Form::number('owner_percentage', null, ['class' => 'form-control', "step" => ".01"]) !!}
%
{!! Form::label('customer_fee_percentage', ' نسبة رسوم العميل:', [], false) !!}
{!! Form::number('customer_fee_percentage', null, ['class' => 'form-control', 'step' => '0.01']) !!}
%
{!! Form::label('max_negative_balance', ' أقصى رصيد سلبي مسموح:', [], false) !!} {!! Form::number('max_negative_balance', null, ['class' => 'form-control', 'step' => '.01']) !!}
{!! Form::label('count_of_units', ' ' . __('models/subscriptions.fields.count_of_units', [], 'ar') . ':', [], false) !!} {!! Form::number('count_of_units', null, ['class' => 'form-control', 'required', 'id' => 'count_of_units']) !!}
{!! Form::label('employee_count', ' ' . __('models/subscriptions.fields.employee_count', [], 'ar').':', [], false) !!} {!! Form::number('employee_count', null, ['class' => 'form-control', 'required']) !!}

التواريخ والمدة

{!! Form::label('created_at', ' تاريخ الإنشاء:', [], false) !!} {!! Form::text('created_at', optional($subscription->created_at)->format('Y-m-d H:i') ?? now()->format('Y-m-d H:i'), ['class' => 'form-control', 'id' => 'created_at']) !!}
{!! Form::label('start_at', ' ' . __('models/subscriptions.fields.start_at', [], 'ar').':', [], false) !!} {!! Form::text('start_at', null, ['class' => 'form-control', 'id' => 'start_at', 'required']) !!}
{!! Form::label('duration_select', ' ' . __('models/subscriptions.fields.duration', [], 'ar') . ':', [], false) !!} {!! Form::select('duration_select', ['' => 'اختيار المدة', '4' => '4 شهور', '6' => '6 شهور', '12' => 'سنة واحدة'], null, ['class' => 'form-control select2', 'id' => 'duration_select', 'style' => 'width: 100%;']) !!}
{!! Form::label('end_at', ' ' . __('models/subscriptions.fields.end_at' , [], 'ar').':', [], false) !!} {!! Form::text('end_at', null, ['class' => 'form-control', 'id' => 'end_at', 'required']) !!}
{!! Form::label('duration_in_days', ' ' . __('models/subscriptions.fields.duration_in_days', [], 'ar').':', [], false) !!} {!! Form::number('duration_in_days', null, ['class' => 'form-control bg-light', 'id' => 'duration_in_days', 'readonly']) !!}

سياسات الإلغاء

{!! Form::label('cancellation_full_refund_days', ' عدد الأيام للاسترداد الكامل قبل الوصول:', [], false) !!} {!! Form::number('cancellation_full_refund_days', null, ['class' => 'form-control', 'min' => 0]) !!}
{!! Form::label('cancellation_partial_refund_percent', ' نسبة الخصم % :', [], false) !!} {!! Form::number('cancellation_partial_refund_percent', isset($subscription) ? $subscription->cancellation_partial_refund_percent * 100 : null, [ 'class' => 'form-control', 'min' => 50, 'max' => 100, 'step' => 1 ]) !!}
{!! Form::label('cancellation_partial_refund_day', ' عدد الأيام قبل الوصول للاسترداد الجزئي فقط:', [], false) !!} {!! Form::number('cancellation_partial_refund_day', null, ['class' => 'form-control', 'min' => 0]) !!}
{!! Form::label('cancellation_full_deduct_day', ' عدد الأيام قبل أو يوم الوصول بدون استرداد:', [], false) !!} {!! Form::number('cancellation_full_deduct_day', null, ['class' => 'form-control', 'min' => 0]) !!}

ملاحظات

{!! Form::label('notes', ' ' . __('models/subscriptions.fields.notes', [], 'ar').':', [], false) !!} {!! Form::textarea('notes', null, ['class' => 'form-control', 'maxlength' => 191, 'rows' => 3]) !!}
@push('page_scripts') @endpush