@if(count($allCategories)>0) @foreach($allCategories as $category) id, $items_id)) style="background: #ffe2e2" @endif> {{Str::limit($category->category_bd, 40)}} @if(in_array($category->id, $items_id)) Added @else Add @endif @endforeach {{$allCategories->appends(request()->query())->links()}} @endif