@if ($paginator->hasPages())
<nav role="navigation" style="margin-top:1rem;">
    @if ($paginator->onFirstPage())
        <span style="margin-right:0.5rem;">Previous</span>
    @else
        <a href="{{ $paginator->previousPageUrl() }}" style="margin-right:0.5rem;">Previous</a>
    @endif
    <span>Page {{ $paginator->currentPage() }} of {{ $paginator->lastPage() }}</span>
    @if ($paginator->hasMorePages())
        <a href="{{ $paginator->nextPageUrl() }}" style="margin-left:0.5rem;">Next</a>
    @else
        <span style="margin-left:0.5rem;">Next</span>
    @endif
</nav>
@endif
