Skip to content

Commit ef78415

Browse files
committed
when pagination isn't in use or if there is only one page of results, adds count on tailwind theme
1 parent 1d9ce5c commit ef78415

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
@if ($paginationEnabled && $showPerPage)
2-
<div class="p-6 md:p-0">
1+
<div class="p-6 md:p-0">
2+
@if ($paginationEnabled && $showPerPage && $rows->lastPage() > 1)
33
{{ $rows->links() }}
4-
</div>
5-
@endif
4+
@else
5+
<p class="text-sm text-gray-700 leading-5">Showing {{ $rows->count() }} results</p>
6+
@endif
7+
</div>

0 commit comments

Comments
 (0)