Product List
Product List
| # | Product Name | Category Name | Product Price | Image | Status | Action | 
|---|---|---|---|---|---|---|
| #<%= i %> | <%= data.productName %> | <%=data.category?.title%> | ₹ <%= data.price %> | <%= data.status %> | Edit Delete | 
                                            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 { %>
                                            
                                        <% } %>
                                        
                                    <% } %>