البيانات الشخصية
{!! Form::label('first_name', __('الاسم الاول') . ':') !!}
{!! Form::text('first_name', null, ['class' => 'form-control', 'maxlength' => 128]) !!}
{!! Form::label('last_name', __('الاسم الاخير') . ':') !!}
{!! Form::text('last_name', null, ['class' => 'form-control', 'maxlength' => 128]) !!}
{!! Form::label('gender', __('الجنس') . ':') !!}
{!! Form::select('gender', [0 => 'ذكر', 1 => 'انثى'], null, ['required' => 'required', 'class' => 'form-control custom-select']) !!}
بيانات التواصل
بيانات الموقع والعنوان
{!! Form::label('country', __('الدولة') . ':') !!}
{!! Form::text('country', null, ['class' => 'form-control', 'maxlength' => 64]) !!}
{!! Form::label('city', __('المدينة') . ':') !!}
{!! Form::select('city', $cities ?? [], null, ['required' => 'required', 'class' => 'form-control custom-select']) !!}
{!! Form::label('address', __('العنوان بالتفصيل') . ':') !!}
{!! Form::text('address', null, ['class' => 'form-control', 'maxlength' => 512]) !!}
إعدادات الحساب والصلاحيات
{!! Form::label('state_id', __('حالة الحساب') . ':') !!}
{!! Form::select(
'state_id',
[
0 => 'غير نشط (Inactive)',
1 => 'نشط (Active)',
2 => 'محظور (Banned)',
],
null,
['required' => 'required', 'class' => 'form-control custom-select'],
) !!}
@if (isset($user_type) && $user_type == 'Admin')
{!! Form::hidden('role_id', 1) !!}
@else
{!! Form::label('role_id', __('نوع المستخدم') . ':') !!}
{!! Form::select(
'role_id',
[
1 => 'مستخدم لوحة التحكم (Admin)',
2 => 'مستخدم عادي (Normal User)',
5 => 'مالك عقار (Property Owner)',
],
null,
['required' => 'required', 'class' => 'form-control custom-select'],
) !!}
@endif
@if (isset($user_type) && $user_type != 'Owner' && $user_type != 'User')
@endif
{!! Form::hidden('canpublsh', 0) !!}
{!! Form::checkbox('canpublsh', '1', null, ['class' => 'custom-control-input', 'id' => 'customSwitchPublish']) !!}
يسمح للمستخدم بنشر المحتوى مباشرة.
{!! Form::hidden('push_enabled', 0) !!}
{!! Form::checkbox('push_enabled', '1', null, ['class' => 'custom-control-input', 'id' => 'customSwitchPush']) !!}
{!! Form::hidden('email_enabled', 0) !!}
{!! Form::checkbox('email_enabled', '1', null, ['class' => 'custom-control-input', 'id' => 'customSwitchEmail']) !!}
@push('scripts')
@endpush