{{ Form::label('attribute_' . $attribute->codename, $attribute->name) }} {{ Form::select('attribute_' . $attribute->codename, (!$attribute->is_required ? array(null => 'Please Select ...') : array()) + $attribute->getSelectOptions(), $edit_mode ? $product->getProductAttributeValue($attribute) : Input::get('attribute_' . $attribute->codename), array('class'=>'bs-select form-control', 'data-live-search'=>'true', 'data-size'=>'8')) }}