@props(['item', 'level' => 0]) @php $paddingLeft = $level === 0 ? 'p-3' : 'py-2 ' . ($level === 1 ? 'pl-7' : 'pl-' . (7 + ($level - 1) * 4)); // Simplified indentation logic: Level 0: p-3, Level 1: pl-7, Level 2: pl-11, etc. // However, Tailwind classes need to be safelisted or static. // Let's use inline style for dynamic indentation or static classes for depth 0-5. // Better approach: nested divs typically handle structure, but here we want flat list appearance with indent. // Given the previous code used `pl-11`, `pl-7`. // Let's use style for padding-left to be truly recursive without massive Tailwind whitelist. $indent = 12 + ($level * 16) . 'px'; // Base 12px + 16px per level (approx) if($level === 0) $indent = '0.75rem'; // p-3 = 12px? No, p-3 is 0.75rem (12px). @endphp @if(!empty($item['children']))