@props([ 'label' => null, 'id' => null, 'model' => null, 'required' => false, 'multiple' => false, 'placeholder' => null, 'live' => false, ]) @php $inputId = $id ?? $model; $baseClass = 'w-full border bg-white dark:bg-zinc-900 rounded-sm hover:shadow-md px-3 py-2 text-sm dark:text-zinc-200 dark: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 @if ($live) {{-- Select --}} @else {{-- Select --}} @endif {{-- Error --}} @if ($model) @error($model)

{{ $message }}

@enderror @endif