@if($type === 'hidden')
@endif @if($floating)
@endif @if(!$floating) @endif merge(['class' => 'form-control' . ($type === 'color' ? ' form-control-color' : '') . ($hasError($name) ? ' is-invalid' : '')]) !!} type="{{ $type }}" @if($isWired()) wire:model{!! $wireModifier() !!}="{{ $name }}" @else value="{{ $value ?? ($type === 'color' ? '#000000' : '') }}" @endif name="{{ $name }}" @if($label && !$attributes->get('id')) id="{{ $id() }}" @endif {{-- Placeholder is required as of writing --}} @if($floating && !$attributes->get('placeholder')) placeholder=" " @endif /> @if($floating) @endif @if($floating)
@endif {!! $help ?? null !!} @if($hasErrorAndShow($name)) @endif @if($type === 'hidden')
@endif