{{--
Author : Gurupriya Solanki
Update Date:6 May 2025
Description: Added Street Address 2 field and store. its not mandatory. And Show here if user has.
--}}
{!! Form::text('street_2', null, array('placeholder' => 'Apt., suite, unit number, etc. (optional)','class' => 'form-control','id' => 'street_2')) !!}
{{--
* If user enters zip code first then fetch and display user city,state, country values
* If user enters city,state, country values then call zipcode AJAX API and cross check the values are correct or not? If not correct then replace API values.
* This JS is calling in frontend and backend(Admin side) when user is creating and updating
--}}
{!! Form::text('zip', null, array('placeholder' => 'Zipcode','class' => 'form-control', 'maxlength'=>'5' ,'id' => 'zip')) !!}
{{--Here number validtionis checking by public\fetch_complete_address_by_zipcode.js . For Future use number_validation class and validateInputNumber() to valid that user can enter only number available public/backend/dist/js/customValidation.js--}}
{{--This error for will come if client enter wrong zipcode and fetch_complete_address_by_zipcode.js is not getting any response--}}
{{--
Date : 2024-03-27
Author : Theshan Thanushka
Conditional Rendering:
This block determines whether to display a role selector dropdown or a readonly field
based on the user's permissions and role.
Author : Gurupriya Solanki
Description : If role is customer and superAdmin then role will not changeable. if role is other then it will changeable
Update Date : 30 May 2024
--}}
@if (Auth::user()->can('users-role-manage') && !in_array('Super Admin', $userRole) && !(count($userRole) == 1 && in_array('Customer', $userRole)))