البيانات الشخصية
{!! Form::label('full_name', __('الاسم كامل') . ':') !!}
{!! Form::text('full_name', null, ['class' => 'form-control', 'maxlength' => 128, 'placeholder' => 'الاسم الثلاثي أو الرباعي']) !!}
{!! 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('profile_file', __('صورة البروفايل') . ':') !!}
{!! Form::file('profile_file', ['class' => 'custom-file-input', 'id' => 'profile_file']) !!}
{!! Form::label('id_proof', __('صورة اثبات الهوية') . ':') !!}
{!! Form::file('id_proof', ['class' => 'custom-file-input', 'id' => 'id_proof']) !!}
بيانات التواصل
{!! Form::label('email', __('البريد الالكتروني') . ':') !!}
{!! Form::email('email', null, ['class' => 'form-control', 'maxlength' => 255, 'placeholder' => 'example@domain.com']) !!}
{!! Form::label('country_code', __('كود البلد') . ':') !!}
{!! Form::text('country_code', null, ['class' => 'form-control', 'maxlength' => 10, 'placeholder' => '+218', 'dir' => 'ltr']) !!}
{!! Form::label('contact_no', __('رقم الهاتف') . ':') !!}
{!! Form::text('contact_no', null, ['class' => 'form-control', 'maxlength' => 32, 'dir' => 'ltr']) !!}
{!! Form::label('whtsaap_no', __('رقم الواتساب') . ':') !!}
{!! Form::text('whtsaap_no', null, ['class' => 'form-control', 'maxlength' => 32, 'dir' => 'ltr']) !!}
بيانات الموقع والعنوان
{!! 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('latitude', __('خط العرض (Latitude)') . ':') !!}
{!! Form::text('latitude', null, ['class' => 'form-control', 'maxlength' => 32, 'dir' => 'ltr']) !!}
{!! Form::label('longitude', __('خط الطول (Longitude)') . ':') !!}
{!! Form::text('longitude', null, ['class' => 'form-control', 'maxlength' => 32, 'dir' => 'ltr']) !!}
إعدادات الحساب والصلاحيات
{!! Form::label('password', __('كلمة المرور') . ':') !!}
{!! Form::password('password', ['class' => 'form-control', 'placeholder' => 'اتركه فارغاً لعدم التغيير', 'autocomplete' => 'new-password']) !!}
{!! 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')
{!! Form::label('roles', __('وظيفة / دور لوحة التحكم (Role)') . ':') !!} {!! Form::select('role', $roles ?? [], isset($tblUser) ? $tblUser->roles()->first()?->id : null, ['required' => 'required', 'class' => 'form-control custom-select']) !!} هذا الخيار متاح فقط للمشرفين ومدراء النظام.
@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