{{-- Renders one node of the FilterSummarizer's nested output. Unlike the builder, this recursion happens entirely server-side on an already-bounded tree (FilterTreeValidator::MAX_DEPTH), so a plain self-@include is safe and needs no depth counter. Presentation only — the authoritative query never passes through here. --}} @php $isOr = ($node['logic'] ?? 'and') === 'or'; @endphp @if (! empty($node['empty']))

{{ $node['label'] }}

@else
{{ $node['label'] }}
@foreach ($node['children'] as $child) @if (($child['kind'] ?? '') === 'group')
@include('admin.campaign-groups.partials.summary-node', ['node' => $child])
@else
{{ $child['text'] }}
@endif @endforeach
@endif