@php $name = $id = 'fillFundingOrg'; $label = isset($element['label']) ? $element['label'] : 'Funding Org.:'; $class = 'form-control'; if (isset($element['attributes']['class'])) { $class .= ' ' . $element['attributes']['class']; } $attributes = ['id' => $id, 'class' => $class,'placeholder' => 'PKSF & Others']; if (isset($element['attributes'])) { $attributes = array_merge($attributes, $element['attributes']); } $options = $fundingOrgs = DB::table('mfn_funding_organization')->where('softDel', 0)->where('status', 1)->pluck('name', 'id')->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) !!}