@if(!empty($category_products))
@php $cat_count = 0; @endphp
@foreach($category_products as $category)
@if(!empty($category->products->take(10)))
@foreach($category->products as $product)
@if(checkDiscountedPrice($product, true))
{!! getPriceColumn($product) !!}
{!! getPriceColumn($product,'discount_price') !!}
@else
{!! getPriceColumn($product) !!}
@endif
@endforeach
@endif
@php $cat_count ++; @endphp
@endforeach
@endif