@props(['field', 'countries' => collect(), 'accountType']) @php $key = $field->field_key; $id = 'registration-'.$accountType.'-'.$key; $type = $field->field_type->value; $icon = match ($key) { 'email' => 'envelope', 'password', 'password_confirmation' => 'lock-closed', 'phone' => 'phone', 'country_id' => 'flag', 'city' => 'building-office-2', 'legal_name', 'trade_name' => 'building-office', default => 'user', }; @endphp @if ($type === 'checkbox') @error($key)

{{ $message }}

@enderror @elseif ($type === 'select') @if ($key === 'country_id') @foreach ($countries as $country) @endforeach @else @foreach ($field->options ?? [] as $option) @endforeach @endif @else @if ($field->localizedHelp())

{{ $field->localizedHelp() }}

@endif @endif