Skip to content

Commit 88c9caa

Browse files
committed
Add for all
1 parent 8dc9eb0 commit 88c9caa

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

resources/views/bootstrap-4/includes/pagination.blade.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@if ($paginationEnabled && $showPerPage)
1+
@if ($paginationEnabled && $showPerPage && $rows->lastPage() > 1)
22
<div class="row">
33
<div class="col-12 col-md-6">
44
{{ $rows->links() }}
@@ -12,4 +12,10 @@
1212
])
1313
</div>
1414
</div>
15+
@else
16+
<div class="row">
17+
<div class="col-12 text-muted">
18+
{!! __('Showing <strong>:count</strong> results', ['count' => $rows->count()]) !!}
19+
</div>
20+
</div>
1521
@endif

resources/views/bootstrap-5/includes/pagination.blade.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@if ($paginationEnabled && $showPerPage)
1+
@if ($paginationEnabled && $showPerPage && $rows->lastPage() > 1)
22
<div class="row">
33
<div class="col-12 col-md-6">
44
{{ $rows->links() }}
@@ -12,4 +12,10 @@
1212
])
1313
</div>
1414
</div>
15+
@else
16+
<div class="row">
17+
<div class="col-12 text-muted">
18+
{!! __('Showing <strong>:count</strong> results', ['count' => $rows->count()]) !!}
19+
</div>
20+
</div>
1521
@endif

resources/views/tailwind/includes/pagination.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
@if ($paginationEnabled && $showPerPage && $rows->lastPage() > 1)
33
{{ $rows->links() }}
44
@else
5-
<p class="text-sm text-gray-700 leading-5">Showing {{ $rows->count() }} results</p>
5+
<p class="text-sm text-gray-700 leading-5">{!! __('Showing <span class="font-medium">:count</span> results', ['count' => $rows->count()]) !!}</p>
66
@endif
77
</div>

0 commit comments

Comments
 (0)