$pages->pagination()

Returns the $pagination object if available.

Related

Check out the docs for the $pagination object