@props([ 'label' => null, 'id' => null, 'model' => null, 'required' => false, 'multiple' => false, 'placeholder' => null, ]) @php $inputId = $id ?? $model; $baseClass = 'w-full border bg-zinc-900 rounded-sm hover:shadow-md px-3 py-2 text-sm text-zinc-200 focus:bg-zinc-950 focus:outline-none focus:ring transition-all'; $multipleClass = $multiple ? 'min-h-20' : ''; $errorClass = 'border-red-800 ring-red-500'; $normalClass = 'border-zinc-700 ring-zinc-600'; $hasError = $model ? $errors->has($model) : false; @endphp
{{-- Label --}} @if ($label) @endif {{-- Select --}} {{-- Error --}} @if ($model) @error($model)

{{ $message }}

@enderror @endif