<?php
//debug($this->Paginator->params());
if ($this->Paginator->params()['nextPage']) {
    $start_limit = (($this->Paginator->params()['page'] * $this->Paginator->params()['current']) - $this->Paginator->params()['perPage']) + 1;
    $end_limit = $this->Paginator->params()['page'] * $this->Paginator->params()['current'];
} else {
    if ($this->Paginator->params()['count'] != 0) {
        $start_limit = ($this->Paginator->params()['count'] - $this->Paginator->params()['current']) + 1;
    } else {
        $start_limit = 0;
    }
    $end_limit = $this->Paginator->params()['count'];
}
?>
<div class="box-footer clearfix">
    <div class="row">
        <div class="col-md-6"><p style="padding-top:20px;float:left;"><?php echo 'Showing ' . $start_limit . ' to ' . $end_limit . ' of ' . $this->Paginator->params()['count'] . ' entries'; ?></p></div>
        <div class="col-md-6">

            <div class="paginator pull-right">
                <ul class="pagination ">
                    <?= $this->Paginator->prev('< ' . __('previous')) ?>
                    <?= $this->Paginator->numbers() ?>
                    <?= $this->Paginator->next(__('next') . ' >') ?>
                </ul>

            </div>

        </div>

    </div>
</div>