{{ Form::label('first_name', __('messages.user.first_name').':', ['class' => 'form-label']) }} {{ Form::text('first_name', null, ['class' => 'form-control', 'required', 'tabindex' => '1']) }}
{{ Form::label('email',__('messages.user.email').':', ['class' => 'form-label']) }} {{ Form::email('email', null, ['class' => 'form-control', 'required', 'tabindex' => '3']) }}
{{ Form::label('Phone',__('messages.visitor.phone').':', ['class' => 'form-label']) }}
{{ Form::tel('phone', null, ['class' => 'form-control iti phoneNumber','id' =>'phoneNumber', 'onkeyup' => 'if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,"")', 'tabindex' => '5']) }} {{ Form::hidden('prefix_code',null,['class'=>'prefix_code']) }} {{ Form::hidden('country_iso', null, ['class' => 'country_iso']) }} ✓   {{__('messages.valid')}}
{{-- {{ Form::hidden('username', Auth::user()->username, ['class' => 'userName']) }}--}} @if(!$isEdit)
{{ Form::label('password', __('messages.user.password').':', ['class' => 'form-label']) }} {{ Form::password('password', ['class' => 'form-control', 'required','min' => '6','max' => '10', 'tabindex' => '8']) }}
@endif
{{ Form::label('dob',__('messages.user.dob').':', ['class' => 'form-label']) }} {{ Form::text('dob', null, ['class' => (getLoggedInUser()->theme_mode) ? 'form-control bg-light' : 'form-control bg-white', 'id' => 'userDob', 'autocomplete' => 'off', 'tabindex' => '10']) }}
{{ Form::label('facebook_url', __('messages.facebook_url').':', ['class' => 'form-label']) }} {{ Form::text('facebook_url', null, ['class' => 'form-control','id'=>'userFacebookUrl', 'onkeypress' => 'return avoidSpace(event);']) }}
{{ Form::label('instagram_url', __('messages.instagram_url').':', ['class' => 'form-label']) }} {{ Form::text('instagram_url', null, ['class' => 'form-control', 'id'=>'userInstagramUrl', 'onkeypress' => 'return avoidSpace(event);']) }}
{{ Form::label('image', __('messages.common.profile').':', ['class' => 'form-label']) }}
@php if($isEdit){ $image = isset($user->media[0]) ? $user->image_url : asset('assets/img/avatar.png'); }else{ $image = asset('assets/img/avatar.png'); } @endphp
{{ __('messages.common.allow_img_text') }}
{{ Form::label('last_name',__('messages.user.last_name').':', ['class' => 'form-label']) }} {{ Form::text('last_name', null, ['class' => 'form-control', 'required', 'tabindex' => '2']) }}
@if(!$isEdit)
{{ Form::label('department_id',__('messages.employee_payroll.role').':', ['class' => 'form-label']) }} {{ Form::select('department_id', $role, null, ['class' => 'form-select', 'required', 'id' => 'userRole', 'placeholder' => __('messages.sms.select_role'), 'data-control' => 'select2']) }}
@endif @if(!$isEdit)
{{ Form::label('department_name', __('messages.doctor_department.doctor_department').':', ['class' => 'form-label']) }} {{ Form::select('doctor_department_id', $doctorDepartments, null, ['class' => 'form-select userDoctorDepartment', 'id' => 'userDoctorDepartmentId', 'placeholder' => 'Select Department', 'data-control' => 'select2', 'required']) }}
@endif @if(!$isEdit)
{{ Form::label('password_confirmation', __('messages.user.password_confirmation').':', ['class' => 'form-label']) }} {{ Form::password('password_confirmation', ['class' => 'form-control','required','min' => '6','max' => '10', 'tabindex' => '9']) }}
@endif
{{ Form::label('gender', __('messages.user.gender').':', ['class' => 'form-label']) }}
   {{ Form::radio('gender', '0', true, ['class' => 'form-check-input', 'tabindex' => '6','id'=>'maleUser']) }}  
{{ Form::radio('gender', '1', false, ['class' => 'form-check-input', 'tabindex' => '7','id'=>'femaleUser']) }}
{{--
--}} {{-- {{ Form::label('status', __('messages.common.status').':', ['class' => 'form-label']) }}--}} {{--
--}} {{--
--}} {{--
--}} {{-- status)) ? 'checked' : ''}} @else--}} {{-- {{ 'checked' }} @endif ">--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}}
{{ Form::label('twitter_url', __('messages.twitter_url').':', ['class' => 'form-label']) }} {{ Form::text('twitter_url', null, ['class' => 'form-control','id'=>'userTwitterUrl', 'onkeypress' => 'return avoidSpace(event);']) }}
{{ Form::label('linkedIn_url', __('messages.linkedIn_url').':', ['class' => 'form-label']) }} {{ Form::text('linkedIn_url', null, ['class' => 'form-control','id'=>'userLinkedInUrl', 'onkeypress' => 'return avoidSpace(event);']) }}
{{ Form::submit(__('messages.common.save'), ['class' => 'btn btn-primary me-2','id' => 'btnUserSave']) }} {{ __('messages.common.cancel') }}