{{ Form::select('fieldset_id', Helper::customFieldsetList(), old('fieldset_id', $fieldset_id), array('class'=>'select2 js-fieldset-field livewire-select2', 'style'=>'width:100%; min-width:350px', 'aria-label'=>'custom_fieldset', 'data-livewire-component' => $this->getId())) }} {!! $errors->first('custom_fieldset', '') !!}
@if ($add_default_values ) {{-- 'if the checkbox is enabled *AND* there are more than 0 fields in the fieldsset' --}} @if ($this->customFields) @foreach ($this->customFields as $field)
@if ($field->format == "DATE")
@elseif ($field->element == "text") @elseif($field->element == "textarea") @elseif($field->element == "listbox") @elseif($field->element == "radio") @foreach(explode("\r\n", $field->field_values) as $field_value) @endforeach @elseif($field->element == "checkbox") @foreach(explode("\r\n", $field->field_values) as $field_value) @endforeach @else Unknown field element: {{ $field->element }} @endif
@endforeach @endif @endif