@endif
{{-- PREFIX/SUFFIX/PREPEND/APPEND CONTAINER --}}
@if($prefix || $suffix || $prepend || $append)
@endif
{{-- PREFIX / PREPEND --}}
@if($prefix || $prepend)
$prefix,
"border-0" => $attributes->has('disabled') && $attributes->get('disabled') == true,
"border-dashed" => $attributes->has('readonly') && $attributes->get('readonly') == true,
"!border-error" => $errorFieldName && $errors->has($errorFieldName) && !$omitError
])
>
{{ $prepend ?? $prefix }}
@endif
{{-- INPUT --}}
has('autofocus') && $attributes->get('autofocus') == true)
autofocus
@endif
{{
$attributes
->merge(['type' => 'text'])
->class([
'input input-primary w-full peer',
'ps-10' => ($icon),
'rounded-s-none' => $prefix || $prepend,
'rounded-e-none' => $suffix || $append,
'border-e-0' => $suffix,
'border border-dashed' => $attributes->has('readonly') && $attributes->get('readonly') == true,
'input-error' => $errorFieldName && $errors->has($errorFieldName) && !$omitError
])
}}
/>
{{-- ICON --}}
@if($icon)
@endif
{{-- SUFFIX/APPEND --}}
@if($suffix || $append)
$suffix,
"border-0" => $attributes->has('disabled') && $attributes->get('disabled') == true,
"border-dashed" => $attributes->has('readonly') && $attributes->get('readonly') == true,
"!border-error" => $errorFieldName && $errors->has($errorFieldName) && !$omitError
])
>
{{ $append ?? $suffix }}
@endif
{{-- END: PREFIX/SUFFIX/APPEND/PREPEND CONTAINER --}}
@if($prefix || $suffix || $prepend || $append)
@endif
{{-- ERROR --}}
@if(!$omitError && $errors->has($errorFieldName))
@foreach($errors->get($errorFieldName) as $message)
@foreach(Arr::wrap($message) as $line)
@break($firstErrorOnly)
@endforeach
@break($firstErrorOnly)
@endforeach
@endif
{{-- HINT --}}
@if($hint)