@if (isset($paginator) && method_exists($paginator, 'hasPages') && $paginator->hasPages())
{{ $paginator->links() }}
@endif