Skip to content

Commit a4e9c14

Browse files
committed
Remove $showPerPage from pagination partials
1 parent 4bbf22e commit a4e9c14

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "deltasystems/laravel-livewire-tables",
2+
"name": "rappasoft/laravel-livewire-tables",
33
"description": "A dynamic table component for Laravel Livewire",
44
"keywords": [
55
"rappasoft",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@if ($showPagination)
2-
@if ($paginationEnabled && $showPerPage && $rows->lastPage() > 1)
2+
@if ($paginationEnabled && $rows->lastPage() > 1)
33
<div class="row">
44
<div class="col-12 col-md-6">
55
{{ $rows->links() }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@if ($showPagination)
2-
@if ($paginationEnabled && $showPerPage && $rows->lastPage() > 1)
2+
@if ($paginationEnabled && $rows->lastPage() > 1)
33
<div class="row">
44
<div class="col-12 col-md-6">
55
{{ $rows->links() }}
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
<div class="p-6 md:p-0">
2-
@if ($paginationEnabled && $showPagination && $rows->lastPage() > 1)
3-
{{ $rows->links() }}
4-
@else
5-
<p class="text-sm text-gray-700 leading-5">
6-
@lang('Showing')
7-
<span class="font-medium">{{ $rows->count() }}</span>
8-
@lang('results')
9-
</p>
10-
@endif
11-
</div>
1+
@if ($showPagination)
2+
<div class="p-6 md:p-0">
3+
@if ($paginationEnabled && $rows->lastPage() > 1)
4+
{{ $rows->links() }}
5+
@else
6+
<p class="text-sm text-gray-700 leading-5">
7+
@lang('Showing')
8+
<span class="font-medium">{{ $rows->count() }}</span>
9+
@lang('results')
10+
</p>
11+
@endif
12+
</div>
13+
@endif

0 commit comments

Comments
 (0)