@if (items()?.length > 0) { @for (item of items(); track $index) { {{ item.category_name || $any(item).name || 'No category name' }} @if (showCounts()) { ({{ getItemCount(item) }}) } } @empty { } } @else { }