@if (($model) && ($model->fieldset)) @foreach($model->fieldset->fields AS $field)
@if ($field->element!='text') @if ($field->element=='listbox') {{ Form::select($field->db_column_name(), $field->formatFieldValuesAsArray(), Request::old($field->db_column_name(),(isset($item) ? Helper::gracefulDecrypt($field, $item->{$field->db_column_name()}) : $field->defaultValue($model->id))), ['class'=>'format select2 form-control']) }} @elseif ($field->element=='textarea') @elseif ($field->element=='checkbox') @foreach ($field->formatFieldValuesAsArray() as $key => $value)
@endforeach @elseif ($field->element=='radio') @foreach ($field->formatFieldValuesAsArray() as $value)
@endforeach @endif @else @if ($field->format=='DATE')
@else @if (($field->field_encrypted=='0') || (Gate::allows('assets.view.encrypted_custom_fields'))) @else @endif @endif @endif @if ($field->help_text!='')

{{ $field->help_text }}

@endif first($field->db_column_name()); if ($errormessage) { $errormessage=preg_replace('/ snipeit /', '', $errormessage); print(''); } ?>
@if ($field->field_encrypted)
@endif
@endforeach @endif