@props(['name', 'label', 'type' => 'text', 'hint' => null, 'autocomplete' => null, 'required' => false, 'money' => false]) @php $error = $errors->first($name); $id = 'f-'.$name; @endphp
@if ($type === 'password')
@endif @if ($money)
@endif merge(['class' => 'touch block w-full rounded-xl border bg-surface px-4 py-2.5 text-base text-ink placeholder:text-ink-soft/70 '.($error ? 'border-red-500' : 'border-field').($type === 'password' ? ' pr-12' : '').($money ? ' pr-10' : '')]) }}> @if ($money)
@endif @if ($type === 'password')
@endif @if($hint && ! $error)

{{ $hint }}

@endif @if($error)

{{ $error }}

@endif