@props([
'type' => 'text',
'placeholder' => '',
'label' => null,
'id' => null,
'name' => null,
'value' => null,
])
@if($label)
@endif
{{-- Left slot (non-clickable) --}}
@isset($left)
{{ $left }}
@endisset
{{-- Input field --}}
class([
'pl-10' => isset($left),
'pr-10' => isset($right),
'pl-3' => !isset($left),
'pr-3' => !isset($right),
'py-2 w-full border border-gray-300 rounded-lg input-focus focus:outline-none focus:border-primary transition-colors'
]) }}
/>
{{-- Right slot (interactive) --}}
@isset($right)
{{ $right }}
@endisset
{{-- Error messages --}}