<?php
defined('ABSPATH') || exit;

$bookwellab_pagination_wrapper_class = isset($bookwellab_pagination_wrapper_class)
    ? (string) $bookwellab_pagination_wrapper_class
    : 'bw-pagination-wrapper bw-admin-list-pagination';
?>
<div class="<?php echo esc_attr($bookwellab_pagination_wrapper_class); ?>">
    <el-pagination
        background
        layout="total, sizes, prev, pager, next"
        :current-page="pagination.page"
        :page-sizes="[10, 20, 50, 100]"
        :page-size="pagination.limit"
        :total="pagination.total"
        :pager-count="pagination_pager_count"
        hide-on-single-page
        @size-change="bwab_handleSizeChange"
        @current-change="bwab_handleCurrentChange">
    </el-pagination>
</div>
