@foreach($contact->getFields as $field)
@if($field->visible)
@if ($field->tag != 'PHONE')
@if($field->type == 'number')
required ? 'required' : '' }}>
@error($field->tag)
{{ $message }}
@enderror
@elseif($field->type == 'textarea')
@error($field->tag)
{{ $message }}
@enderror
@elseif($field->type == 'date')
required ? 'required' : '' }}>
@error($field->tag)
{{ $message }}
@enderror
@elseif($field->type == 'datetime')
required ? 'required' : '' }}>
@error($field->tag)
{{ $message }}
@enderror
@else
required ? 'required' : '' }}>
@error($field->tag)
{{ $message }}
@enderror
@endif
@else
@error('PHONE')
{{ $message }}
@enderror
{!! __('locale.contacts.include_country_code') !!}
@endif
@endif
@endforeach