<% include ../styles.ejs %> ADMI <% include ../header.ejs %> <% var permissions = JSON.stringify(permissionData[0].permissions); var rlm_res = rlm.resourcelevelmappings; var rlm_name_list_arr = {}; for(var r=0; r < rlm_res.length; r++) { var k = rlm_res[r].resourcelevelmapping_level._id; var v = rlm_res[r].resourcelevelmapping_name_list; rlm_name_list_arr[k] = v; } %> <% var findRes = myworktask.findRes; var findRes_t = myworktask.findRes; var task_submit_res = task_submit_list.findRes; var task_wise_submit = []; var wallet_amt = 0; var kyc_status = ''; var withdraw_req_amt = 0; var withdrawal_amt = 0; var user_kyc_res = {}; user_kyc_res.bank_name = ''; user_kyc_res.account_name = ''; user_kyc_res.account_number = ''; user_kyc_res.ifsc_code = ''; user_kyc_res.passbook = ''; user_kyc_res.idproof = ''; user_kyc_res.address = ''; user_kyc_res.notes = ''; if(kyc_res.findRes.length==0){ kyc_status = "Pending"; } else if(kyc_res.findRes.length > 0){ user_kyc_res = kyc_res.findRes[0]; kyc_status = user_kyc_res.status; } if(withdraw_res.findRes.length==0){ withdraw_req_amt = 0; withdrawal_amt = 0; } else if(withdraw_res.findRes.length > 0){ var findRes = withdraw_res.findRes; for(var w = 0; w < findRes.length; w++){ if(findRes[w].status=='Waiting'){ withdraw_req_amt = withdraw_req_amt + findRes[w].amount; } else if(findRes[w].status=='Approved'){ withdrawal_amt = withdrawal_amt + findRes[w].amount; } } } %>
<% include myworks.ejs %> <% include mywallet.ejs %> <% include kyc.ejs %> <% include withdraw.ejs %> <% include channel_account.ejs %> <% wallet_amt = wallet_amt-(withdraw_req_amt+withdrawal_amt); %>
<% include ../footer.ejs%> <% include ../scripts.ejs %>