@foreach($products as $prod)
@include('includes.product.product')
@endforeach
@if(isset($min) || isset($max))
{!! $products->appends(['cat_id' => $cat_id ,'min' => $min, 'max' => $max])->links() !!}
@elseif(!empty($sort))
@if(!empty($category_id))
{!! $products->appends(['category_id' => $category_id, 'search' => $search, 'sort' => $sort])->links() !!}
@else
{!! $products->appends(['cat_id' => $cat_id, 'min' => $min, 'max' => $max, 'sort' => $sort])->links() !!}
@endif
@else
{!! $products->appends(['category_id' => $category_id, 'search' => $search])->links() !!}
@endif