<% if(data[0].err){ %>
This Country server will not be added because API for this server has responded with: <%= data[0].err %>
<% } else { %>
<% var [arr_one, arr_two] = sliceArrayIntoTwo(data[0]?.list || []) %>
<% arr_one.forEach(function (obj, index){ %>
<%= obj.name %> - ₹<%= obj.profitAmt %>
<%= obj.description %>
<% if(arr_two[index]){ %>
<%= arr_two[index].name %> - ₹<%= arr_two[index].profitAmt %>
<%= arr_two[index].description %>
<% } %>
<% }) %>
<% } %>