@props([ 'name', 'label' => null, 'type' => 'text', 'placeholder' => '', 'value' => '', 'required' => false, 'disabled' => false, 'hint' => null, 'prefix' => null, 'suffix' => null, ])
@if($label) @endif
@if($prefix) {!! $prefix !!} @endif merge([ 'class' => 'h-11 w-full rounded-lg border bg-transparent text-sm text-gray-800 placeholder:text-gray-400 focus:outline-hidden focus:ring-3 dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30 shadow-theme-xs ' . ($prefix ? 'pl-12 ' : 'px-4 ') . ($suffix ? 'pr-12 ' : '') . ($errors->has($name) ? 'border-error-500 focus:border-error-300 focus:ring-error-500/20 dark:border-error-500' : 'border-gray-300 focus:border-brand-300 focus:ring-brand-500/20 dark:border-gray-700 dark:focus:border-brand-800') ]) }} /> @if($suffix) {{ $suffix }} @endif
@if($hint && !$errors->has($name))

{{ $hint }}

@endif @error($name)

{{ $message }}

@enderror