Product List

Product List

Export Import
<% let i = 1; list.forEach(function(data) { %> <% i++; }) %>
# Product Name Category Name Product Price Image Status Action
#<%= i %> <%= data.productName %> <%=data.category?.title%> ₹ <%= data.price %> <%= data.status %> Edit Delete
<% if (listCount > 0) { %>
Showing <% if (((currentPage - 1) * pageSize) + 1 == listCount) { %> <%= listCount %> <% } else { %> <%= ((currentPage - 1) * pageSize) + 1 %> to <%= currentPage == pageCount ? listCount : (currentPage * pageSize) %> <% } %> of <%= listCount %> entries
<% if (currentPage > 1) { %> <% } else { %> <% } %> <% for (let i = 1; i <= pageCount; i++) { %> <% if (i >= currentPage - 2 && i <= currentPage + 2) { %> <% } %> <% } %> <% if (currentPage < pageCount) { %> <% } else { %> <% } %>
<% } %>
<%- include('../layout/footer.html') %>