{{-- عرض رسائل النجاح --}}
@if(session('success'))
{{ session('success') }}
@endif
{{-- عرض رسائل الخطأ --}}
@if(session('error'))
{{ session('error') }}
@endif
{{-- عرض رسائل التحقق من البيانات --}}
@if ($errors->any())
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
{!! Form::model($pricing, [
'url' => action([\Modules\Master\Http\Controllers\PricingController::class, 'update'], $pricing->id),
'method' => 'PUT',
'id' => 'edit_pricing',
]) !!}
{{-- اسم الخطة --}}
{!! Form::label('name', __('master::lang.pricing_name') . '*') !!}
{!! Form::text('name', null, [
'class' => 'form-control',
'required',
'placeholder' => __('master::lang.pricing_name'),
]) !!}
{{-- السعر الشهري لكل مستخدم --}}
{!! Form::label('monthly_price_per_user', __('master::lang.monthly_price_per_user') . '*') !!}
{!! Form::number('monthly_price_per_user', null, [
'class' => 'form-control',
'required',
'placeholder' => __('master::lang.monthly_price_per_user'),
'step' => '0.0001',
'min' => 0,
]) !!}
{{-- السعر السنوي لكل مستخدم --}}
{!! Form::label('yearly_price_per_user', __('master::lang.yearly_price_per_user') . '*') !!}
{!! Form::number('yearly_price_per_user', null, [
'class' => 'form-control',
'required',
'placeholder' => __('master::lang.yearly_price_per_user'),
'step' => '0.0001',
'min' => 0,
]) !!}
{{-- الوصف --}}
{!! Form::label('description', __('master::lang.description')) !!}
{!! Form::textarea('description', null, [
'class' => 'form-control',
'rows' => 3,
'placeholder' => __('master::lang.description'),
]) !!}
{{-- فترة السماح --}}
{!! Form::label('grace_period_days', __('master::lang.grace_period_days')) !!}
{!! Form::number('grace_period_days', $pricing->grace_period_days ?? 3, [
'class' => 'form-control',
'min' => 0,
'placeholder' => __('master::lang.grace_period_days_placeholder'),
'title' => 'عدد الأيام المسموح بها عند تجاوز الحد الأقصى للمستخدمين'
]) !!}
{{-- حالة التفعيل --}}
{{-- زر التحديث --}}
{!! Form::submit(__('messages.update'), ['class' => 'tw-dw-btn tw-dw-btn-success tw-text-white tw-dw-btn-lg']) !!}
{!! Form::close() !!}