{{-- Form Input Component --}} @props([ 'name' => '', 'type' => 'text', 'placeholder' => '', 'value' => null, 'required' => false, 'disabled' => false, 'icon' => null, 'iconTrailing' => null, 'clearable' => false, 'darkVariant' => false, ]) @php $control = 'block w-full rounded-lg border border-input bg-card px-3 py-2.5 text-sm text-card-foreground shadow-sm transition-colors duration-200 placeholder:text-muted-foreground focus:border-primary-500 focus:outline-none focus:ring-2 focus:ring-primary-500/20 dark:focus:border-primary-400 disabled:opacity-60 disabled:cursor-not-allowed'; $err = $errors->has($name) ? ' border-red-400 focus:border-red-500 focus:ring-red-500/20' : ''; if ($darkVariant) { $control = 'block w-full rounded-[10px] border border-white/12 bg-[rgb(var(--auth-surface)_/_0.45)] px-3.5 py-2.5 text-sm text-white outline-none transition-[border-color,box-shadow] placeholder:text-white/30 focus:border-violet-300/70 focus:ring-[3px] focus:ring-violet-500/20 disabled:opacity-60 disabled:cursor-not-allowed'; } if ($attributes->has('data-cb-search')) { $clearable = true; } @endphp