public function price($name, $options = [])
    {
        $options['addon'] = ['before' => isset($options['currency']) ? $options['currency'] : 'Rp'];
        $options['class'] = isset($options['class']) ? $options['class'].' text-right' : 'text-right';

        return $this->text($name, $options);
    }
public function price($name, $options = [])
    {
        $options['addon'] = ['before' => isset($options['currency']) ? $options['currency'] : 'Rp'];
        $options['class'] = isset($options['class']) ? $options['class'].' text-right' : 'text-right';

        return $this->text($name, $options);
    }
public function price ( $ name , $ options = [ ] ) { $ options [ 'addon' ] = [ 'before' => isset ( $ options [ 'currency' ] ) ? $ options [ 'currency' ] : 'Rp' ] ; $ options [ 'class' ] = isset ( $ options [ 'class' ] ) ? $ options [ 'class' ] . ' text-right' : 'text-right' ; return $ this -> text ( $ name , $ options ) ; }
Price input field that wrapped with form-group bootstrap div.

@param  string  $name  The price field name and id attribute.
@param  array  $options  Additional attribute for the price input.
@return string  Generated price input form field.
Price input field that wrapped with form - group bootstrap div .