{{ Form::hidden('is_admin',true) }} {{ Form::label('first_name', __('messages.user.first_name').':', ['class' => 'form-label required']) }} {{ Form::text('first_name', isset($user) ? $user->first_name : null, ['class' => 'form-control', 'placeholder' => __('messages.form.first_name'), 'required', 'id' => 'userFirstName']) }}
{{ Form::label('last_name', __('messages.user.last_name').':', ['class' => 'form-label required']) }} {{ Form::text('last_name', isset($user) ? $user->last_name : null, ['class' => 'form-control', 'placeholder' => __('messages.form.last_name'), 'required', 'id' => 'userLastName']) }}
{{ Form::label('email', __('messages.user.email').':', ['class' => 'form-label required']) }} {{ Form::email('email', isset($user) ? $user->email : null, ['class' => 'form-control', 'placeholder' => __('messages.form.mail'), 'required']) }}
{{ Form::label('contact', __('messages.user.contact_no').':', ['class' => 'form-label']) }} {{ Form::tel('contact', isset($user) && $user->contact ? '+'.$user->region_code.$user->contact : null, ['class' => 'form-control', 'placeholder' => __('messages.form.contact'), 'onkeyup' => 'if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,"")','id'=>'phoneNumber']) }} {{ Form::hidden('region_code',isset($user) ? $user->region_code : null,['id'=>'prefix_code']) }}

{{__('messages.placeholder.valid_number')}}

{{__('messages.placeholder.invalid_number')}}

@if(!isset($user))
@endif
{{__('messages.allowed_file_types')}}
{{ Form::submit(__('messages.common.save'),['class' => 'btn btn-primary me-3']) }} {{__('messages.common.discard')}}