@foreach($deals as $deal) @if($old_category != $deal->category_id && $count != 0)
@endif @if($old_category != $deal->category_id)
{{$deal->product_category}}
@if($count!=0) @else @endif