<ul class="ui-categori">
    @foreach(getCategoriesFW() as $cat)
        <li class="{{count($cat->children) > 0 ? 'parent' : ''}}">
            <a href="{{count($cat->children) > 0 ? 'javascript:void(0)' : '/shop?sort=Latest&category=' . $cat->id}}">
                {{$cat->title}}
            </a>
            @if(count($cat->children) > 0)
                <span class="toggle-submenu"></span>
                <div class="submenu">
                    <ul class="categori-list clearfix">
                        @foreach($cat->children as $scat)
                            <li class="col-sm-12">
                                <p class="title"><a href="/shop?sort=Latest&category={{$scat->id}}">{{$scat->title}}</a></p>
                            </li>
                        @endforeach
                    </ul>
                </div>
            @endif
        </li>
    @endforeach
    <li><a href="/shop?sort=Latest&price=2">Under $500</a></li>
    <li><a href="/shop?sort=Latest&price=1">Under $100</a></li>
</ul>
