@php // We need this extra step to support models arrays. Ex: wire:model="emails.0" , wire:model="emails.1" $uuid = $uuid . $modelName() @endphp
{{-- STANDARD LABEL --}} @if($label && !$inline) {{ $label }} @if($attributes->get('required')) * @endif {{-- INPUT POPOVER --}} @if($popover) {{ $popover }} @endif @endif
$label && $inline])> {{-- FLOATING LABEL--}} @if ($label && $inline) {{ $label }} @endif
$prepend || $append])> {{-- PREPEND --}} @if($prepend) {{ $prepend }} @endif {{-- THE LABEL THAT HOLDS THE INPUT --}}
whereStartsWith('class')->class([ "input w-full", "join-item" => $prepend || $append, "border-dashed" => $attributes->has("readonly") && $attributes->get("readonly") == true, "!input-error" => $errorFieldName() && $errors->has($errorFieldName()) && !$omitError ]) }} > {{-- PREFIX --}} @if($prefix) {{ $prefix }} @endif {{-- ICON LEFT / TOGGLE INPUT TYPE --}} @if($icon) @elseif($placeToggleLeft()) @endif {{-- INPUT --}} has('autofocus') && $attributes->get('autofocus') == true) autofocus @endif {{ $attributes->except('type')->merge() }} /> {{-- CLEAR ICON --}} @if($clearable) @endif {{-- ICON RIGHT / TOGGLE INPUT TYPE --}} @if($iconRight) $clearable]) /> @elseif($placeToggleRight()) $clearable]) :tabindex="$passwordIconTabindex ? null : -1" > @endif {{-- SUFFIX --}} @if($suffix) {{ $suffix }} @endif
{{-- APPEND --}} @if($append) {{ $append }} @endif
{{-- HINT --}} @if($hint)
{{ $hint }}
@endif {{-- ERROR --}} @if(!$omitError && $errors->has($errorFieldName())) @foreach($errors->get($errorFieldName()) as $message) @foreach(Arr::wrap($message) as $line)
{{ $line }}
@break($firstErrorOnly) @endforeach @break($firstErrorOnly) @endforeach @endif