protected function checkGroup($label, $name, $control)
{
$label = $this->builder->label($label, $name)->after($control);
$checkGroup = new CheckGroup($label);
if ($this->builder->hasError($name)) {
$checkGroup->helpBlock($this->builder->getError($name));
$checkGroup->addClass('has-error');
}
return $checkGroup;
}