mirror of https://github.com/kcal-app/kcal.git
14 lines
484 B
PHP
14 lines
484 B
PHP
@foreach ($options as $option)
|
|
@if(is_iterable($option['value']))
|
|
<optgroup label="{{ $option['label'] }}">
|
|
<x-inputs.select-options :options="$option['value']"
|
|
:selectedValue="$selectedValue" />
|
|
</optgroup>
|
|
@else
|
|
<option value="{{ $option['value'] }}"
|
|
@if ($option['value'] == $selectedValue) selected @endif>
|
|
{{ $option['label'] }}
|
|
</option>
|
|
@endif
|
|
@endforeach
|