public function textDisplay($name, $value, $options = [])
    {
        $label = isset($options['label']) ? $options['label'] : $this->formatFieldLabel($name);
        $requiredClass = '';

        if (isset($options['required']) && $options['required'] == true) {
            $requiredClass .= ' required ';
        }

        $fieldId = isset($options['id']) ? 'id="'.$options['id'].'" ' : '';

        $htmlForm = '<div class="form-group'.$requiredClass.'">';
        $htmlForm .= FormFacade::label($name, $label, ['class' => 'form-label']);
        $htmlForm .= '<div class="form-control" '.$fieldId.'readonly>'.$value.'</div>';
        $htmlForm .= '</div>';

        return $htmlForm;
    }
public function textDisplay($name, $value, $options = [])
    {
        $label = isset($options['label']) ? $options['label'] : $this->formatFieldLabel($name);
        $requiredClass = '';

        if (isset($options['required']) && $options['required'] == true) {
            $requiredClass .= ' required ';
        }

        $fieldId = isset($options['id']) ? 'id="'.$options['id'].'" ' : '';

        $htmlForm = '<div class="form-group'.$requiredClass.'">';
        $htmlForm .= FormFacade::label($name, $label, ['class' => 'form-label']);
        $htmlForm .= '<div class="form-control" '.$fieldId.'readonly>'.$value.'</div>';
        $htmlForm .= '</div>';

        return $htmlForm;
    }
public function textDisplay ( $ name , $ value , $ options = [ ] ) { $ label = isset ( $ options [ 'label' ] ) ? $ options [ 'label' ] : $ this -> formatFieldLabel ( $ name ) ; $ requiredClass = '' ; if ( isset ( $ options [ 'required' ] ) && $ options [ 'required' ] == true ) { $ requiredClass .= ' required ' ; } $ fieldId = isset ( $ options [ 'id' ] ) ? 'id="' . $ options [ 'id' ] . '" ' : '' ; $ htmlForm = '<div class="form-group' . $ requiredClass . '">' ; $ htmlForm .= FormFacade :: label ( $ name , $ label , [ 'class' => 'form-label' ] ) ; $ htmlForm .= '<div class="form-control" ' . $ fieldId . 'readonly>' . $ value . '</div>' ; $ htmlForm .= '</div>' ; return $ htmlForm ; }
Display a text on the form as disabled input.

@param  string  $name  The disabled text field name.
@param  string  $value  The field value (displayed text).
@param  array  $options  The attributes for the disabled text field.
@return string  Generated disabled text field.
Display a text on the form as disabled input .