@php $name = $id = 'fillMonth'; $label = isset($element['label']) ? $element['label'] : 'Month:'; $class = 'form-control custom-select2'; if (isset($element['attributes']['class'])) { $class .= ' ' . $element['attributes']['class']; } $attributes = ['id' => $id, 'class' => $class,'placeholder' => 'Select month']; if (isset($element['attributes'])) { $attributes = array_merge($attributes, $element['attributes']); } $options = $monthsOption = array( 1 => 'January', 2 => 'February', 3 => 'March', 4 => 'April', 5 => 'May', 6 => 'June', 7 => 'July', 8 => 'August', 9 => 'September', 10 => 'October', 11 => 'November', 12 => 'December' ); 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