@if ($showLabel && $options['label'] !== false && $options['label_show']) {!! Form::customLabel($name, $options['label'], $options['label_attr']) !!} @endif @php if ($options['choices'] instanceof \Illuminate\Contracts\Support\Arrayable) { $options['choices'] = $options['choices']->toArray(); } @endphp {!! Form::customSelect( $name, ($options['empty_value'] ? ['' => $options['empty_value']] : []) + $options['choices'], $options['selected'] !== null ? $options['selected'] : $options['default_value'], $options['attr'], Arr::get($options, 'optionAttrs', []), Arr::get($options, 'optgroupsAttributes', []), ) !!}