@php
$value_key = $options['value_key'] ?? 'value';
$title_key = $options['title_key'] ?? 'title';
if(!isset($options['selected'])){
$options['selected'] = $value;
}
foreach ($options['list'] as $key => $item) {
$options['list'][$key]['value'] = $item[$value_key];
$options['list'][$key]['text'] = $item[$title_key];
}
$custom_attrs = $options['custom_attrs'] ?? [];
@endphp
$attr_value)
{!! $attr !!}="{!! $attr_value !!}"
@endforeach
>
@section('js-before')
@parent
@endsection