{{-- Left-column category navigation: back-links up the tree, current category, and its children (or siblings for a leaf), collapsed after N. Тёплая панель, текущий раздел — белым (docs/design-inventory.md). --}} @php $navItems = $children->isNotEmpty() ? $children : $siblings; $currentInList = $children->isEmpty() && $siblings->isNotEmpty(); // leaf → current highlighted inside the siblings list $collapseAfter = 8; $indent = $ancestors->isNotEmpty() ? 'ml-3' : ''; @endphp