Laravel Sprawdź, czy paginacja jest pusta
@if ($items->hasPages())
<div class="pagination-wrapper">
{{ $items->links() }}
</div>
@endif
Yucky Yak
@if ($items->hasPages())
<div class="pagination-wrapper">
{{ $items->links() }}
</div>
@endif
@unless (count($items))
<p>Unfortunately, no items were returned.</p>
@endunless
or you can use something like:
if($items->isNotEmpty()){
//your code
}
if($items->isEmpty()){
//your code
}