This commit is contained in:
slong753 2023-04-05 15:27:28 -05:00
parent d56a4e7173
commit 830e3e5594
2 changed files with 0 additions and 15 deletions

View file

@ -184,13 +184,7 @@
</div>
</div>
{{-- @foreach ($models as $model)
<label class="col-md-12 text-center">
{{ $model->name }} asset model
</label>
@include("models/custom_fields_form",["model" => $model]) --}}
@include("models/custom_fields_form_bulk_edit",["models" => $models])
{{-- @endforeach --}}
@foreach ($assets as $key => $value)
<input type="hidden" name="ids[{{ $value }}]" value="1">

View file

@ -1,12 +1,3 @@
@php
$fields = [];
foreach($model->fieldset->fields AS $field) {
$fields[] = $field->db_column_name();
}
ray($fields);
$duplicates = array_diff_assoc($fields, array_unique($fields));
ray($duplicates);
@endphp
@if (($model) && ($model->fieldset))
@foreach($model->fieldset->fields AS $field)
<div class="form-group{{ $errors->has($field->db_column_name()) ? ' has-error' : '' }}">