@aware(['component'])
@props(['rows'])
@php
$theme = $component->getTheme();
@endphp
@if ($component->hasConfigurableAreaFor('before-pagination'))
@include($component->getConfigurableAreaFor('before-pagination'), $component->getParametersForConfigurableArea('before-pagination'))
@endif
@if ($theme === 'tailwind')
@if ($component->paginationVisibilityIsEnabled())
@if ($component->paginationIsEnabled() && $component->isPaginationMethod('standard') && $rows->lastPage() > 1)
@elseif ($component->paginationIsEnabled() && $component->isPaginationMethod('simple'))
@else
@endif
@if ($component->paginationIsEnabled())
{{ $rows->links('livewire-tables::specific.tailwind.pagination') }}
@endif
@endif
@elseif ($theme === 'bootstrap-4')
@if ($component->paginationVisibilityIsEnabled())
@if ($component->paginationIsEnabled() && $component->isPaginationMethod('standard') && $rows->lastPage() > 1)
{{ $rows->links('livewire-tables::specific.bootstrap-4.pagination') }}
@lang('Showing')
{{ $rows->count() ? $rows->firstItem() : 0 }}
@lang('to')
{{ $rows->count() ? $rows->lastItem() : 0 }}
@lang('of')
{{ $rows->total() }}
@lang('results')
@elseif ($component->paginationIsEnabled() && $component->isPaginationMethod('simple'))
{{ $rows->links('livewire-tables::specific.bootstrap-4.pagination') }}
@lang('Showing')
{{ $rows->count() ? $rows->firstItem() : 0 }}
@lang('to')
{{ $rows->count() ? $rows->lastItem() : 0 }}
@else
@lang('Showing')
{{ $rows->count() }}
@lang('results')
@endif
@endif
@elseif ($theme === 'bootstrap-5')
@if ($component->paginationVisibilityIsEnabled())
@if ($component->paginationIsEnabled() && $component->isPaginationMethod('standard') && $rows->lastPage() > 1)
{{ $rows->links('livewire-tables::specific.bootstrap-4.pagination') }}
@lang('Showing')
{{ $rows->count() ? $rows->firstItem() : 0 }}
@lang('to')
{{ $rows->count() ? $rows->lastItem() : 0 }}
@lang('of')
{{ $rows->total() }}
@lang('results')
@elseif ($component->paginationIsEnabled() && $component->isPaginationMethod('simple'))
{{ $rows->links('livewire-tables::specific.bootstrap-4.pagination') }}
@lang('Showing')
{{ $rows->count() ? $rows->firstItem() : 0 }}
@lang('to')
{{ $rows->count() ? $rows->lastItem() : 0 }}
@else
@lang('Showing')
{{ $rows->count() }}
@lang('results')
@endif
@endif
@endif
@if ($component->hasConfigurableAreaFor('after-pagination'))
@include($component->getConfigurableAreaFor('after-pagination'), $component->getParametersForConfigurableArea('after-pagination'))
@endif