@component('EcomGeneralViews::components.form.input', [ "parentClass" => isset($parent_class) ? $parent_class : '', "size" => "full", "type" => "text", "label" => ___('authentication.phone_number') ])
    <input type="text" class="phone-field {{ app()->getLocale() }}" required
           data-custom-container="" data-allow-dropdown="true"
           data-autohide-dialcode="true" data-format="true" data-national-mode="true" placeholder=" "
           name="phone" data-initial-country="{{ $country_code ?? old('phone_country_code') }}"

           @if(isset($phone_value) && $phone_value != '') value="{{$phone_value}}" @else  value="{{old('phone')}}" @endif
    />
    <input type="hidden" name="phone_country_code" class="phone_country_code" value="{{old('phone_country_code' , isset($country_code) ? $country_code : '')}}"/>

    <span class="invalid-field"> @error('phone') {{$message}}  @enderror </span>
@endcomponent

