@php use App\Http\Controllers\microfin\MicroFin; $name = isset($element['name']) ? $element['name'] : 'fillActiveSamity'; $id = 'fillActiveSamity'; $label = isset($element['label']) ? $element['label'] : 'Show Samity:'; $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']); } $userAccessibleBranchIds = App\Service\Service::getEngagedBranchesByUserId(Auth::user()->id); if(isset($element['options'])){ $options = $element['options']; } else{ $options = ['1'=>'Active Only','0'=>'With Active and Inactive']; } $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) !!}