@props([ 'name' => '', 'value' => '', 'options' => [], ]) @php $attributes = $attributes->merge(['class' => 'border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm']); if ($value instanceof UnitEnum) { $value = $value->value; } @endphp @if ($options == 'direct') {{-- Alpinejs 用 options 用の template を書けるようにする --}} @else {{ Form::select($name, $options, $value, $attributes->getAttributes()) }} @endif