function renderPagination(data, container) {
let html = "";
if (data.data && data.data.length > 0) {
html += `<div class="post-pagination wow fadeInUp" data-wow-delay="0.10s">
<ul class="pagination">`;
if (data.prev_page_url !== null) {
html += `<li><a href="javascript:void(0)" data-page="${
data.current_page - 1
}"><i class="fa-solid fa-arrow-left-long"></i></a></li>`;
}
for (var i = 1; i <= data.last_page; i++) {
html += `<li class="${
data.current_page == i ? "active" : ""
}"><a href="javascript:void(0)" data-page="${i}">${i}</a></li>`;
}
if (data.next_page_url !== null) {
html += `<li><a href="javascript:void(0)" data-page="${
data.current_page + 1
}"><i class="fa-solid fa-arrow-right-long"></i></a></li>`;
}
html += ` </ul>
</div>`;
}
$(container).html(html);
}