@foreach($children as $child)
{{ $child->name }}
{{ $parentName }} {{ $child->fields ? count($child->fields) : 0 }} {{ $child->value_count ?? 0 }}
{!! html()->form('DELETE', route($routePrefix . '.destroy', $child->id))->attributes([ 'style' => 'display:inline', 'id' => 'delete-form-' . $child->id, ])->open() !!} {!! html()->form()->close() !!}
@if(isset($childProperties[$child->id])) @include('admin.manages.custom-properties.child-rows', [ 'children' => $childProperties[$child->id], 'childProperties' => $childProperties, 'allProperties' => $allProperties, 'level' => $level + 1, 'parentName' => $child->name, 'parentId' => $child->id ]) @endif @endforeach