@php //set array up before loop so it doesn't get wiped at every iteration $fields = []; @endphp @foreach($models as $model) @if (($model) && ($model->fieldset)) @foreach($model->fieldset->fields AS $field) @php //prevents some duplicate queries - open to a better way of skipping dupes in output //its ugly, but if we'd rather deal with duplicate queries we can get rid of this. if (in_array($field->db_column_name(), $fields)) { $duplicate = true; continue; } else { $duplicate = false; } $fields[] = $field->db_column_name(); @endphp
{{-- @if ($field->is_unique)
@else --}} @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, htmlspecialchars($item->{$field->db_column_name()}, ENT_QUOTES)) : $field->defaultValue($model->id))), ['class'=>'format select2 form-control']) }} @elseif ($field->element=='textarea') @if($field->is_unique) @endif @if(!$field->is_unique) @endif @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('admin'))) @if ($field->is_unique) @endif @if(!$field->is_unique) @endif @else @endif @endif @endif @if ($field->help_text!='')

{{ $field->help_text }}

@endif {{-- @if ($field->is_unique)

Unique, Can't Be Bulk Updated

@endif --}}

{{ trans('admin/hardware/form.bulk_update_model_prefix') }} @foreach($field->assetModels() as $assetModel) @if(in_array($assetModel->name, $modelNames)) {{$assetModel->name}}{{($loop->last) ? '' : ', '}} @endif @endforeach

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