Skip to content

Commit

Permalink
Add sorting query to pagination links
Browse files Browse the repository at this point in the history
  • Loading branch information
NFarrington committed Nov 2, 2019
1 parent 55b8f14 commit 4e905ef
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion resources/views/platform/urls/_table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@
</table>
</div>

<div class="mx-auto">{{ $urls->links() }}</div>
@if(!Request::has('sort'))
<div class="mx-auto">{{ $urls->links() }}</div>
@else
<div class="mx-auto">
{{ $urls->appends(['sort' => Request::get('sort'), 'direction' => Request::get('direction')])->links() }}
</div>
@endif
@else
<div class="card-body text-center">
<span>Nothing to show.</span>
Expand Down

0 comments on commit 4e905ef

Please sign in to comment.