<?php
    /**
     * @var \App\View\AppView $this
     */

    use Cake\Utility\Inflector;

    $params = $this->Paginator->params();

?>

<?php if ($params['count']): ?>

    <div class="d-flex justify-content-center align-items-center flex-column">
        <?php if ($params['pageCount'] > 1): ?>
            <ul class="pagination">
                <?= $this->Paginator->first('<i class="fa-solid fa-angles-left"></i>') ?>
                <?= $this->Paginator->prev('<i class="fa-solid fa-angle-left"></i>') ?>
                <?= $this->Paginator->numbers() ?>
                <?= $this->Paginator->next('<i class="fa-solid fa-angle-right"></i>') ?>
                <?= $this->Paginator->last('<i class="fa-solid fa-angles-right"></i>') ?>
            </ul>
        <?php endif ?>
        <div class="text-muted"><?= $this->Paginator->counter('{{start}} - {{end}} of {{count}}') ?></div>
    </div>

<?php else: ?>

    <div class="text-center py-5 m-0 alert text-bg-info-soft">
        <strong><?= $empty ?? "NO ENTRIES FOUND" ?></strong>
    </div>

<?php endif ?>
