1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00
Files
openstamanager/resources/views/components/inputs/select-option.blade.php
2021-03-15 14:48:56 +01:00

7 lines
417 B
PHP

<option value="{{ $option['id'] }}"
{{ in_array($option['id'], $value) ? 'selected' : '' }}
{{ !empty($option['_bgcolor_']) ? 'style="background:'.$element['_bgcolor_'].'; color:'.color_inverse($element['_bgcolor_']).';"' : '' }}
data-select-attributes='{{ replace(json_encode($option), ["'" => "\'"]) }}'>
{{ empty($option['text']) ? $option['descrizione'] : $option['text'] }}
</option>