<div class="paginator" style="text-align: center;">
		<p><?php $start = $this->Paginator->counter(__('{{start}}')) ?></p>
                <p><?php $pages = $this->Paginator->counter(__('{{pages}}')) ?></p>
                <p><?php $currentPage = $this->Paginator->counter(__('{{page}}')) ?></p>
                <?php $next = $currentPage + 1; ?>
                <?php $previous = $currentPage - 1; ?>


                <nav aria-label="Page navigation example">
                    <ul class="pagination">
                        <li class="page-item">
                            <a class="page-link" href="?page=<?= $previous ?>" aria-label="Previous">
                                <span aria-hidden="true">&laquo;</span>
                            </a>
                        </li>
                        <?php for ($i = 1; $i <= $pages; $i++){?>
                        <li class="page-item"><a class="page-link" href="?page=<?= $i ?>"><?= $i ?></a></li>
                        <?php } ?>

                        <?php if($next <= $pages){?>
                        <li class="page-item">
                            <a class="page-link" href="?page=<?= $next ?>" aria-label="Next">
                                <span aria-hidden="true">&raquo;</span>
                            </a>
                        </li>
                        <?php } ?>
                    </ul>
                </nav>


                <p><?= $this->Paginator->counter(__('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')) ?></p>

    </div>