Prescription List

Prescription List

<% var i = 1; list.forEach(function(data) { %> <% i++; }) %>
Image User Name Created At Status Action
<%= data.customer?.fullName%> <%= moment(data.createdAt).format('DD MMM, YYYY') %> <%= moment(data.createdAt).format('HH:mm:A') %> <%= data.status %> Edit Delete
<% if (list.length < 1) { %>
Sorry! No Result Found

We did not find any prescription for you search.

<% } %> <% 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 (var j = 1; j <= pageCount; j++) { %> <% if (j >= currentPage - 2 && j <= currentPage + 2) { %> <% } %> <% } %> <% if (currentPage < pageCount) { %> <% } else { %> <% } %>
<% } %>