Suggested Cultural Tours
${tour.name}
${tourtype} ${tour.excerpt || ""}
${tourDescription}
View more
No tours available.
"); } if (scrollToTop) { $("html, body").animate({ scrollTop: $("#TourList").offset().top }, 500); } updatePagination(response.pagination); }, error: function (xhr) { console.error("Error fetching tours:", xhr); $("#tour-list-container").empty().append("Failed to fetch tours. Please try again later.
"); }, }); } function updatePagination(pagination) { if (pagination) { const currentPage = pagination.current_page; const lastPage = pagination.last_page; $("#paged").empty(); for (let page = 1; page <= lastPage; page++) { const pageItem = $("