@endif
{{-- PREFIX / PREPEND --}}
@if($prefix || $prepend)
$prefix,
"border-0 bg-base-300" => $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
{{-- MONEY SETUP --}}
@if($money)
@endif
{{-- INPUT --}}
has('autofocus') && $attributes->get('autofocus') == true)
autofocus
@endif
@if($money)
x-ref="myInput"
:value="amount"
x-on:input="$nextTick(() => $wire.set('{{ $modelName() }}', Currency.getUnmasked(), false))"
inputmode="numeric"
@endif
{{
$attributes
->merge(['type' => 'text'])
->except($money ? 'wire:model' : '')
->class([
'input input-primary w-full peer',
'ps-10' => ($icon),
'h-14' => ($inline),
'pt-3' => ($inline && $label),
'rounded-s-none' => $prefix || $prepend,
'rounded-e-none' => $suffix || $append,
'border border-dashed' => $attributes->has('readonly') && $attributes->get('readonly') == true,
'input-error' => $errorFieldName() && $errors->has($errorFieldName()) && !$omitError
])
}}
/>
{{-- ICON --}}
@if($icon)
@endif
{{-- CLEAR ICON --}}
@if($clearable)
@endif
{{-- RIGHT ICON --}}
@if($iconRight)
$clearable]) />
@endif
{{-- INLINE LABEL --}}
@if($label && $inline)
@endif
{{-- HIDDEN MONEY INPUT + END MONEY SETUP --}}
@if($money)
only('wire:model') }} />
@endif
{{-- SUFFIX/APPEND --}}
@if($suffix || $append)
$suffix,
"border-0 bg-base-300" => $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)