@php $name = isset($element['name']) ? $element['name'] : 'fillDepthLevel'; $id = 'fillDepthLevel'; $label = isset($element['label']) ? $element['label'] : 'Depth Level:'; $class = 'form-control'; if (isset($element['attributes']['class'])) { $class .= ' ' . $element['attributes']['class']; } $attributes = ['id' => $id, 'class' => $class]; if (isset($element['attributes'])) { $attributes = array_merge($attributes, $element['attributes']); } $options = array( '' => 'All', ); if (isset($element['options'])) { $options = $element['options']; } $defaultValue = isset($element['defaultValue']) ? $element['defaultValue'] : ''; $col = isset($element['col']) ? 'col-xs-' . $element['col'] : 'col-xs-2'; @endphp
{!! Form::label($name, $label, ['class' => 'control-label']) !!}
{!! Form::select($name, $options, $defaultValue, $attributes) !!}