@props([ 'label' => null, 'icon' => null, 'name' => null, 'type' => 'text', ])
{{-- Label --}} @if($label) @endif
{{-- Icon Prefix --}} @if($icon)
@endif {{-- Input Field --}} merge([ 'class' => "w-full h-12 text-sm font-semibold rounded-xl bg-gray-50 dark:bg-gray-800 text-gray-700 dark:text-white border border-gray-200 dark:border-gray-700 outline-none transition-all focus:ring-2 " . ($icon ? 'pl-10 pr-12' : 'px-4 pr-12') . ($errors->has($name) ? ' focus:ring-rose-500/30 ring-1 ring-rose-500/50' : ' focus:ring-indigo-500/30') ]) }} value="{{ old($name, $attributes->get('value')) }}" > {{-- Show/Hide Password Toggle --}} @if($type === 'password') @endif
{{-- Error Message --}} @error($name)

{{ $message }}

@enderror