Clinic Visit List

<% var i = 1; list.forEach(function(data) { %> <% i++; }) %>
User Name Clinic Name Clinic Address Created At Status Action
<%= data.customer?.fullName%> <%= data.clinic?.name%> <%= data.clinic?.address%> <%= moment(data.createdAt).format('DD MMM, YYYY') %> <%= moment(data.createdAt).format('HH:mm:A') %> <%= data.status %>
<% 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 { %> <% } %>
<% } %>