Showing <%- (totalRecords === 0 ? 0 : ((currentPage - 1) * pageSize) + 1) %> - <%- totalRecords < currentPage * pageSize ? totalRecords : currentPage * pageSize %> of <%- totalRecords %>