destinations
This commit is contained in:
25
resources/views/components/inputs/select.blade.php
Normal file
25
resources/views/components/inputs/select.blade.php
Normal file
@@ -0,0 +1,25 @@
|
||||
@props([
|
||||
'id' => null,
|
||||
'label' => null,
|
||||
'required' => false,
|
||||
])
|
||||
|
||||
<span @class(['flex flex-col'])>
|
||||
<label for={{ $id }}>
|
||||
@if ($label)
|
||||
{{ $label }}
|
||||
@else
|
||||
{{ $id }}
|
||||
@endif
|
||||
@if ($required)
|
||||
*
|
||||
@endif
|
||||
</label>
|
||||
<select {{ $attributes }} wire:model.defer={{ $id }}>
|
||||
{{ $slot }}
|
||||
</select>
|
||||
|
||||
@error($id)
|
||||
<div class="text-red-500">{{ $message }}</div>
|
||||
@enderror
|
||||
</span>
|
||||
Reference in New Issue
Block a user