$pagination->hasPages()
Checks if there are any pages at all. This is useful if you want to show/hide the pagination.
-
return (boolean)
Example
<?php
$subpages = $page->children()->paginate(10);
$pagination = $subpages->pagination();
?>
<!-- foreach loop with subpages -->
<?php if($pagination->hasPages()): ?>
<!-- put pagination here -->
<?php endif ?>