@props([ 'name' => 'phone', 'countryField' => 'phone_country', 'id' => null, 'labelledBy' => null, 'required' => false, 'defaultCountry' => 'ke', 'syncCountry' => null, ]) @php $fieldId = $id ?? $name; $preferred = implode(',', config('countries.preferred', ['ke'])); @endphp
class(['intl-phone-field']) }} data-intl-phone-input data-default-country="{{ $defaultCountry }}" data-preferred-countries="{{ $preferred }}" @if ($syncCountry) data-sync-country="{{ $syncCountry }}" @endif >