<a class="green-dark" href="{{ route('Shop.Categories.show', ['id' => $menu_children['id']]) }}">
    <div class="w-100 @if (in_array($menu_children['id'], [$category['id'] ?? false, $category['parent_id'] ?? false])) active @endif">
        <strong>{{ $menu_children['name'] }}</strong>
    </div>
</a>
@foreach ($menu_children['children'] ?? [] as $leaf)
    <a class="green-dark" href="{{ route('Shop.Categories.show', ['id' => $leaf['id']]) }}">
        <div class="w-100 @if (($category['id'] ?? false) == $leaf['id']) active @endif">{{ $leaf['name'] }}</div>
    </a>
@endforeach
