{{ Form::select('custom_fieldset', \App\Helpers\Helper::customFieldsetList(),old('custom_fieldset', 0000 /*$item->fieldset_id*/), array('class'=>'select2 js-fieldset-field', 'style'=>'width:350px', 'aria-label'=>'custom_fieldset', 'wire:model' => 'fieldset_id')) }} {!! $errors->first('custom_fieldset', '') !!}
@if($this->add_default_values) {{-- 'if the checkbox is enabled *AND* there are more than 0 fields in the fieldsset' --}}
Default Values
@empty($fields) {{-- There was an error? --}}

There was a problem retrieving the fields for this fieldset.

@else {{-- NOTE: This stuff could work well also for the 'view this asset and do its custom fields' thing --}} @foreach($fields as $field)
@if($field->element == "text") @elseif($field->element == "textarea")
@elseif($field->element == "listbox") @else Unknonown field element: {{ $field->element }} @endif
@endforeach @endif
@endif