public function checkbox($name, $label = null, $value = 1, $checked = null, array $options = [])
    {
        $inputElement = $this->checkboxElement($name, $label, $value, $checked, false, $options);

        $wrapperOptions = $this->isHorizontal() ? ['class' => implode(' ', [$this->getLeftColumnOffsetClass(), $this->getRightColumnClass()])] : [];
        $wrapperElement = '<div' . $this->html->attributes($wrapperOptions) . '>' . $inputElement . $this->getFieldError($name) . $this->getHelpText($name, $options) . '</div>';

        return $this->getFormGroup($name, null, $wrapperElement);
    }
public function checkbox($name, $label = null, $value = 1, $checked = null, array $options = [])
    {
        $inputElement = $this->checkboxElement($name, $label, $value, $checked, false, $options);

        $wrapperOptions = $this->isHorizontal() ? ['class' => implode(' ', [$this->getLeftColumnOffsetClass(), $this->getRightColumnClass()])] : [];
        $wrapperElement = '<div' . $this->html->attributes($wrapperOptions) . '>' . $inputElement . $this->getFieldError($name) . $this->getHelpText($name, $options) . '</div>';

        return $this->getFormGroup($name, null, $wrapperElement);
    }
public function checkbox ( $ name , $ label = null , $ value = 1 , $ checked = null , array $ options = [ ] ) { $ inputElement = $ this -> checkboxElement ( $ name , $ label , $ value , $ checked , false , $ options ) ; $ wrapperOptions = $ this -> isHorizontal ( ) ? [ 'class' => implode ( ' ' , [ $ this -> getLeftColumnOffsetClass ( ) , $ this -> getRightColumnClass ( ) ] ) ] : [ ] ; $ wrapperElement = '<div' . $ this -> html -> attributes ( $ wrapperOptions ) . '>' . $ inputElement . $ this -> getFieldError ( $ name ) . $ this -> getHelpText ( $ name , $ options ) . '</div>' ; return $ this -> getFormGroup ( $ name , null , $ wrapperElement ) ; }
Create a Bootstrap checkbox input.

@param  string   $name
@param  string   $label
@param  string   $value
@param  bool     $checked
@param  array    $options
@return string
Create a Bootstrap checkbox input .