@props(['label' => null, 'hint' => null, 'error' => null, 'required' => false, 'prefix' => null, 'suffix' => null])
@php $id = $attributes->get('id') ?? 'f_'.\Illuminate\Support\Str::random(6); @endphp
@if ($label)
@endif
@if ($prefix)
{{ $prefix }}
@endif
merge([
'class' => 'field-input'.($prefix ? ' pl-9' : '').($suffix ? ' pr-12' : ''),
'type' => 'text',
]) }}
>
@if ($suffix)
{{ $suffix }}
@endif
@if ($error)
{{ $error }}
@elseif ($hint)
{{ $hint }}
@endif