Skip to content

Commit 8c299ab

Browse files
committed
Fix issue in pagination blade
1 parent e53d95a commit 8c299ab

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

resources/views/components/pagination.blade.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
<span class="font-medium">{{ $this->getRows->lastItem() }}</span>
3535
@endif
3636
</p>
37-
@elseif ($this->isPaginationMethod('cursor'))
3837
@else
3938
<p class="total-pagination-results text-sm text-gray-700 leading-5 dark:text-white">
4039
@lang('livewire-tables::Showing')
@@ -44,6 +43,19 @@
4443
@endif
4544
{{ $this->getRows->links('livewire-tables::specific.tailwind.'.(!$this->isPaginationMethod('standard') ? 'simple-' : '').'pagination') }}
4645
</div>
46+
@elseif ($this->isTailwind && $this->paginationIsDisabled())
47+
<div {{ $this->getPaginationWrapperAttributesBag()->class([
48+
"mt-4 px-4 md:p-0 sm:flex justify-between items-center space-y-4 sm:space-y-0" => $this->isTailwind && ($this->getPaginationWrapperAttributes['default'] ?? true)
49+
])
50+
->except(['default', 'default-colors', 'default-styling'])
51+
}}
52+
>
53+
<p class="total-pagination-results text-sm text-gray-700 leading-5 dark:text-white">
54+
@lang('livewire-tables::Showing')
55+
<span class="font-medium">{{ $this->getRows->count() }}</span>
56+
@lang('livewire-tables::results')
57+
</p>
58+
</div>
4759
@elseif ($this->isBootstrap4 && $this->paginationIsEnabled() && $this->paginationVisibilityIsEnabled())
4860
<div {{ $this->getPaginationWrapperAttributesBag()
4961
->except(['default', 'default-colors', 'default-styling'])

0 commit comments

Comments
 (0)