{{-- Multi-Select Component (Alpine.js powered) --}} @props([ 'name' => '', 'label' => '', 'options' => [], 'selected' => [], 'hint' => '', 'required' => false, ]) @php $trigger = 'flex w-full cursor-pointer items-center justify-between gap-2 rounded-lg border border-input bg-card px-3 py-2.5 text-left text-sm text-card-foreground shadow-sm transition-colors duration-200 focus:border-primary-500 focus:outline-none focus:ring-2 focus:ring-primary-500/20 dark:focus:border-primary-400'; $trigger .= $errors->has($name) ? ' border-red-400' : ''; $pill = 'inline-flex items-center gap-1 rounded-full bg-primary-100 px-2 py-0.5 text-xs font-medium text-primary-700 dark:bg-primary-950 dark:text-primary-300'; $menu = 'absolute left-0 z-50 mt-2 max-h-56 w-full overflow-y-auto rounded-xl border border-border bg-card py-1 shadow-soft animate-fade-in dark:bg-card'; @endphp
@if($label) @endif
@if($hint && !$errors->has($name))

{{ $hint }}

@endif