Wallet Amount : <%- wallet_amt %>

<% var td_i = 0; var findRes = myworktask.findRes; if(typeof findRes != 'undefined'){ if(findRes && findRes.length > 0){ for(var i=0; i < findRes.length; i++) { var take = findRes[i].take; var task_status = findRes[i].status; var index_take = take.findIndex(x => (x._id) === user_id); if(task_status=='Completed' && index_take > -1){ td_i++; var chk_arr = rlm_name_list_arr[findRes[i].resourceLevelId._id]; var index = chk_arr.findIndex(x => (x._id) === user_id); var reward = 0; var len = findRes[i].submit_id.length; if(len!=0){ if(findRes[i].submit_id[len-1].user_role=='Student') { reward = findRes[i].reward_student; } else if(findRes[i].submit_id[len-1].user_role=='Freelancer') { reward = findRes[i].reward_freelancer; } } wallet_amt = wallet_amt+parseInt(reward); var iddd = findRes[i]._id.toString(); var submit_allow = 'No'; if(index == -1){ var st = 'Not allowed'; } else if(index_take > -1){ var st = 'Taken'; } else if(take.length == 0){ var st = 'Take Task'; } else if(take.length != 0){ var st = 'Not available'; } %> <% } } } } %>
S.No Task name Level Reward () Date Action
<%= td_i; %> <%= findRes[i].name %> <%= findRes[i].resourceLevelId.resourcelevel_title %> <%- reward %> <%- moment(findRes[i].taskDate).format('YYYY-MM-DD') %>