protected function getPickItemsHtmlField(Field $field, Label $option, ValidationParser $parser)
    {
        $filename = sprintf('form-pickitems%s-field.blade', $field->isInlineOptions ? '-inline' : '');
        $stub = $this->getStubContent($filename, $this->template);
        $fieldName = ($field->isMultipleAnswers()) ? $this->getFieldNameAsArray($field->name) : $field->name;
        $checkedItem = $this->getCheckedItemForPickItem($option->value, $field->name, $field->isMultipleAnswers(), $field->htmlValue);
        $this->replaceFieldType($stub, $field->htmlType)
            ->replaceFieldName($stub, $fieldName)
            ->replaceOptionValue($stub, $option->value)
            ->replaceCheckedItem($stub, $checkedItem)
            ->replaceItemId($stub, $option->id)
            ->replaceFieldRequired($stub, ($field->htmlType == 'checkbox') ? false : $parser->isRequired())
            ->replaceCssClass($stub, $field->cssClass)
            ->replaceItemLabel($stub, $this->getTitle($option, true));

        return $stub;
    }
protected function getPickItemsHtmlField(Field $field, Label $option, ValidationParser $parser)
    {
        $filename = sprintf('form-pickitems%s-field.blade', $field->isInlineOptions ? '-inline' : '');
        $stub = $this->getStubContent($filename, $this->template);
        $fieldName = ($field->isMultipleAnswers()) ? $this->getFieldNameAsArray($field->name) : $field->name;
        $checkedItem = $this->getCheckedItemForPickItem($option->value, $field->name, $field->isMultipleAnswers(), $field->htmlValue);
        $this->replaceFieldType($stub, $field->htmlType)
            ->replaceFieldName($stub, $fieldName)
            ->replaceOptionValue($stub, $option->value)
            ->replaceCheckedItem($stub, $checkedItem)
            ->replaceItemId($stub, $option->id)
            ->replaceFieldRequired($stub, ($field->htmlType == 'checkbox') ? false : $parser->isRequired())
            ->replaceCssClass($stub, $field->cssClass)
            ->replaceItemLabel($stub, $this->getTitle($option, true));

        return $stub;
    }
protected function getPickItemsHtmlField ( Field $ field , Label $ option , ValidationParser $ parser ) { $ filename = sprintf ( 'form-pickitems%s-field.blade' , $ field -> isInlineOptions ? '-inline' : '' ) ; $ stub = $ this -> getStubContent ( $ filename , $ this -> template ) ; $ fieldName = ( $ field -> isMultipleAnswers ( ) ) ? $ this -> getFieldNameAsArray ( $ field -> name ) : $ field -> name ; $ checkedItem = $ this -> getCheckedItemForPickItem ( $ option -> value , $ field -> name , $ field -> isMultipleAnswers ( ) , $ field -> htmlValue ) ; $ this -> replaceFieldType ( $ stub , $ field -> htmlType ) -> replaceFieldName ( $ stub , $ fieldName ) -> replaceOptionValue ( $ stub , $ option -> value ) -> replaceCheckedItem ( $ stub , $ checkedItem ) -> replaceItemId ( $ stub , $ option -> id ) -> replaceFieldRequired ( $ stub , ( $ field -> htmlType == 'checkbox' ) ? false : $ parser -> isRequired ( ) ) -> replaceCssClass ( $ stub , $ field -> cssClass ) -> replaceItemLabel ( $ stub , $ this -> getTitle ( $ option , true ) ) ; return $ stub ; }
Gets creates a checkbox or radio button html field for a given field.

@param CrestApps\CodeGeneraotor\Support\Field $field
@param CrestApps\CodeGeneraotor\Support\Label $option
@param CrestApps\CodeGeneraotor\Support\ValidationParser $parser

@return string
Gets creates a checkbox or radio button html field for a given field .