resources/views/components/form/inputs/select.blade.php: Set selected attribute.
This commit is contained in:
parent
acce1c21b8
commit
7ba4ab30c1
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<select name="{{ $name }}" {!! $attributes->merge(['class' => 'w-full border rounded p-1 focus:ring-2']) !!}>
|
||||
@forelse($options as $key => $option)
|
||||
<option value="{{ $key }}">
|
||||
<option value="{{ $key }}" @if($key == $value)selected @endif>
|
||||
{{ $option }}
|
||||
</option>
|
||||
@empty
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue