@if($categories && $categories->count() > 0)
    <ul class="nav flex-column gap-2 pt-sm-3 pb-3 pb-sm-0 mt-n1 mb-1 mb-sm-0">
                                        
        @foreach($categories as $index => $category)
           <li class="d-flex w-100 pt-1">
                
                 <a class="nav-link animate-underline animate-target d-inline fw-normal text-truncate p-0"
                                                href="{{ route('product.index',['filter[category_id]'=>$category->id]) }}">{{ $category->name }}</a>
            </li>
            
        @endforeach
    </ul>
@endif