diff --git a/resources/views/components/pagination.blade.php b/resources/views/components/pagination.blade.php index 4a9ffca95..feab347e2 100644 --- a/resources/views/components/pagination.blade.php +++ b/resources/views/components/pagination.blade.php @@ -1,19 +1,16 @@ -@aware(['isTailwind','isBootstrap','isBootstrap4','isBootstrap5']) - @includeWhen( $this->hasConfigurableAreaFor('before-pagination'), $this->getConfigurableAreaFor('before-pagination'), $this->getParametersForConfigurableArea('before-pagination') ) -@if ($this->isTailwind) -
- @if($this->showPaginationDetails()) {{ __($this->getLocalisationPath.'Showing') }} {{ $this->getRows->firstItem() }} {{ __($this->getLocalisationPath.'to') }} @@ -21,44 +18,43 @@ {{ __($this->getLocalisationPath.'of') }} {{ __($this->getLocalisationPath.'results') }} - @endif
- @elseif ($this->paginationIsEnabled() && $this->isPaginationMethod('simple')) + @elseif ($this->paginationIsEnabled && $this->isPaginationMethod('simple') && $this->showPaginationDetails)- @if($this->showPaginationDetails()) - {{ __($this->getLocalisationPath.'Showing') }} - {{ $this->getRows->firstItem() }} - {{ __($this->getLocalisationPath.'to') }} - {{ $this->getRows->lastItem() }} - @endif + {{ __($this->getLocalisationPath.'Showing') }} + {{ $this->getRows->firstItem() }} + {{ __($this->getLocalisationPath.'to') }} + {{ $this->getRows->lastItem() }}
- @elseif ($this->paginationIsEnabled() && $this->isPaginationMethod('cursor')) + @elseif ($this->paginationIsEnabled && $this->isPaginationMethod('cursor')) @else -- {{ __($this->getLocalisationPath.'Showing') }} - {{ $this->getRows->count() }} - {{ __($this->getLocalisationPath.'results') }} -
+ @if($this->showPaginationDetails) ++ {{ __($this->getLocalisationPath.'Showing') }} + {{ $this->getRows->count() }} + {{ __($this->getLocalisationPath.'results') }} +
+ @endif @endif