@php $totalProducts = $products instanceof Illuminate\Pagination\LengthAwarePaginator ? $products->total() : $products->count(); $currentCount = $products->count(); @endphp
@lang('ecommerce::ecommerce.sort_by_label')
@lang('ecommerce::ecommerce.showing_products_count', ['count' => $currentCount, 'total' => $totalProducts])
@if($products->count() > 0)
@include('ecommerce::pages.partials.product-grid', compact('products'))
@if($products instanceof Illuminate\Pagination\LengthAwarePaginator && $products->hasPages())
@endif @else

@lang('ecommerce::ecommerce.no_products_title')

@lang('ecommerce::ecommerce.no_products_desc')

@endif