Fix profile links and pagination
This commit is contained in:
parent
bfdbbcc6d1
commit
ae43cf0928
6 changed files with 31 additions and 2 deletions
|
@ -26,7 +26,7 @@
|
|||
@endforeach
|
||||
</div>
|
||||
|
||||
{{ $items->links() }}
|
||||
{{ $items->links('templates.pagination') }}
|
||||
|
||||
@include('templates.bio')
|
||||
@stop
|
||||
|
|
25
resources/views/templates/pagination.blade.php
Normal file
25
resources/views/templates/pagination.blade.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
@if ($paginator->hasPages())
|
||||
<nav role="navigation">
|
||||
<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
|
Loading…
Add table
Add a link
Reference in a new issue