mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 13:42:49 +01:00
30 lines
1.3 KiB
PHP
30 lines
1.3 KiB
PHP
<div>
|
|
@if ($paginator->hasPages())
|
|
<nav>
|
|
<ul class="pagination">
|
|
{{-- Previous Page Link --}}
|
|
@if ($paginator->onFirstPage())
|
|
<li class="page-item disabled" aria-disabled="true">
|
|
<span class="page-link">@lang('pagination.previous')</span>
|
|
</li>
|
|
@else
|
|
<li class="page-item">
|
|
<button type="button" class="page-link" wire:click="previousPage('{{ $paginator->getPageName() }}')" wire:loading.attr="disabled" rel="prev">@lang('pagination.previous')</button>
|
|
</li>
|
|
@endif
|
|
|
|
{{-- Next Page Link --}}
|
|
@if ($paginator->hasMorePages())
|
|
<li class="page-item">
|
|
<button type="button" class="page-link" wire:click="nextPage('{{ $paginator->getPageName() }}')" wire:loading.attr="disabled" rel="next">@lang('pagination.next')</button>
|
|
</li>
|
|
@else
|
|
<li class="page-item disabled" aria-disabled="true">
|
|
<span class="page-link">@lang('pagination.next')</span>
|
|
</li>
|
|
@endif
|
|
</ul>
|
|
</nav>
|
|
@endif
|
|
</div>
|