Video Consultation List

<% var i = 1; list.forEach(function(data) { %> <% i++; }) %>
User Name Doctor Name Schedule Status Created At Action
<%= data?.customer?.fullName%> <%= data?.doctor?.name%> <%= data?.doctorDay?.day%> (<%= data?.doctorTime?.fromTime.split(':')[0]%>:<%= data?.doctorTime?.fromTime.split(':')[1]%> to <%= data?.doctorTime?.toTime.split(':')[0]%>:<%= data?.doctorTime?.toTime.split(':')[1]%>) <%= data.status %> <%= moment(data.createdAt).format('DD MMM, YYYY') %> <%= moment(data.createdAt).format('HH:mm:A') %>
<% 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 { %> <% } %>
<% } %>