public function staticField($name, $label = null, $value = null, array $options = [])
    {
        $options = array_merge(['class' => 'form-control-static'], $options);

        if (is_array($value) and isset($value['html'])) {
            $value = $value['html'];
        } else {
            $value = e($value);
        }

        $label = $this->getLabelTitle($label, $name);
        $inputElement = '<p' . $this->html->attributes($options) . '>' . $value . '</p>';

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

        return $this->getFormGroup($name, $label, $wrapperElement);
    }
public function staticField($name, $label = null, $value = null, array $options = [])
    {
        $options = array_merge(['class' => 'form-control-static'], $options);

        if (is_array($value) and isset($value['html'])) {
            $value = $value['html'];
        } else {
            $value = e($value);
        }

        $label = $this->getLabelTitle($label, $name);
        $inputElement = '<p' . $this->html->attributes($options) . '>' . $value . '</p>';

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

        return $this->getFormGroup($name, $label, $wrapperElement);
    }
public function staticField ( $ name , $ label = null , $ value = null , array $ options = [ ] ) { $ options = array_merge ( [ 'class' => 'form-control-static' ] , $ options ) ; if ( is_array ( $ value ) and isset ( $ value [ 'html' ] ) ) { $ value = $ value [ 'html' ] ; } else { $ value = e ( $ value ) ; } $ label = $ this -> getLabelTitle ( $ label , $ name ) ; $ inputElement = '<p' . $ this -> html -> attributes ( $ options ) . '>' . $ value . '</p>' ; $ wrapperOptions = $ this -> isHorizontal ( ) ? [ 'class' => $ this -> getRightColumnClass ( ) ] : [ ] ; $ wrapperElement = '<div' . $ this -> html -> attributes ( $ wrapperOptions ) . '>' . $ inputElement . $ this -> getFieldError ( $ name ) . $ this -> getHelpText ( $ name , $ options ) . '</div>' ; return $ this -> getFormGroup ( $ name , $ label , $ wrapperElement ) ; }
Create a Bootstrap static field.

@param  string  $name
@param  string  $label
@param  string  $value
@param  array   $options
@return string
Create a Bootstrap static field .