{{--
{{var_dump($productGroup['children'])}}
--}}
@foreach($productGroup['children'] as $productGroup)

    <li class="list-unstyled">
    @if(!$productGroup['isLeaf'])
            <a class="categoryItem">{{$productGroup['name']}}</a>
            <ul>
        @include('modules.order.productSelectSidebarProductGroupPartial',$productGroup)
            </ul>
    @else
            <a class="categoryItem clickable" data-id="{{$productGroup['id']}}" >{{$productGroup['name']}}</a>
    @endif
    </li>
@endforeach

