[WIP] Setup of skeleton
This commit is contained in:
14
resources/views/components/options-complex.blade.php
Normal file
14
resources/views/components/options-complex.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
@if (isset($list) && count($list))
|
||||
@foreach($list as $item)
|
||||
<option
|
||||
@if (isset($value) && ($item['id'] == $value)) selected @endif value="{{$item['id']}}"
|
||||
@foreach($item as $item_key => $item_value)
|
||||
@if (($item_key != 'id') && ($item_key != 'txt'))
|
||||
data-{{ $item_key }}="{{ $item_value }}"
|
||||
@endif
|
||||
@endforeach
|
||||
>
|
||||
{{ $item['txt'] }}
|
||||
</option>
|
||||
@endforeach
|
||||
@endif
|
||||
Reference in New Issue
Block a user