jonnybarnes.uk/resources/views/templates/pagination.blade.php
Jonny Barnes 302d4e6fdb
Small validation fixes
- prevent repeated IDs in mastodon icon SVG
  - fix missing offset attribute in mastodon icon SVG
  - remove un-needed role on <nav> element
  - add empty alt attribute to some social icons
2023-11-27 22:10:50 +00:00

25 lines
735 B
PHP

@if ($paginator->hasPages())
<nav class="pagination">
<div>
@if ($paginator->onFirstPage())
<span>
{!! __('pagination.previous') !!}
</span>
@else
<a href="{{ $paginator->previousPageUrl() }}">
{!! __('pagination.previous') !!}
</a>
@endif
@if ($paginator->hasMorePages())
<a href="{{ $paginator->nextPageUrl() }}">
{!! __('pagination.next') !!}
</a>
@else
<span>
{!! __('pagination.next') !!}
</span>
@endif
</div>
</nav>
@endif