<% include ../styles.ejs %> <% if(chapters){ for(var i=0; i < chapters.length; i++){ %> <% } } %> ADMI <% include ../header.ejs %>

<%= courses[0].course.name %>

<% for(var i=0; i < chapters.length; i++){ %> <% if(chapters[i].parent=='' ){ %>
<% for(var j=0; j < chapters.length; j++){ %> <% if(chapters[j].parent==chapters[i].uuid && chapters[j].type=="sub" ){ %>
<% for(var z=0; z < chapters.length; z++){ %> <% if(chapters[z].parent==chapters[j].uuid && chapters[z].type=="chapter"){ %> <% }else if(chapters[z].parent==chapters[j].uuid && chapters[z].type=="lesson" ){ %> <% }else if( chapters[z].parent==chapters[j].uuid && chapters[z].type=="downloads" ){ %> <% } else if( chapters[z].parent==chapters[j].uuid && chapters[z].type=="test" ){ %> <% } else if( chapters[z].parent==chapters[j].uuid && chapters[z].type=="quizTitle" ){ %> <% } else if( chapters[z].parent==chapters[j].uuid && chapters[z].type=="assignment" ){ %> <% } %> <% } %>
<% }else if(chapters[j].parent==chapters[i].uuid && chapters[j].type=="lesson" ){ %> <% } else if( chapters[j].parent==chapters[i].uuid && chapters[j].type=="downloads" ){ %> <% }else if( chapters[j].parent==chapters[i].uuid && chapters[j].type=="test" ){ %> <% } else if( chapters[j].parent==chapters[i].uuid && chapters[j].type=="quizTitle" ){ %> <% } else if( chapters[j].parent==chapters[i].uuid && chapters[j].type=="assignment" ){ %> <% } %> <% } %>
<% } else if( chapters[i].parent=='' && chapters[i].type=="lesson" ){ %> <% }else if( chapters[i].parent=='' && chapters[i].type=="assignment" ){ %> <% } else if( chapters[i].parent=='' && chapters[i].type=="downloads" ){ %> <% } else if( chapters[i].parent=='' && chapters[i].type=="test" ){ %> <% } else if( chapters[i].parent=='' && chapters[i].type=="quizTitle" ){ %> <% } %> <% } %>
<% for(var i=0;i< assignment.length; i++){ %>

    <% var sno = 0; for(var j=0; j < assignment_report.length; j++){ if(assignment[i]._id == assignment_report[j].chapter._id){ %>
  • <%= sno+1 %> . Submission on <%= moment(assignment_report[j].updated).format( 'DD - MM - YYYY H:M:S') %> - <% if(assignment_report[0].assignment_files.length > 0){ %> <% for(var dwn_z=0; dwn_z < assignment_report[0].assignment_files.length; dwn_z++){ %> <% } %> <% }else{ %> <% } %> <% if(assignment_report[j].review_status=='A'){ %> - Accepted <%} %> <% if(assignment_report[j].review_status=='NA'){ %> - Not Accepted <%} %> <% if(assignment_report[j].review_status!='A' && assignment_report[j].review_status!='NA'){ %> - Review Inprogress <%} %>
  • <% sno++; } } %>

<% } %>
<% for(var i=0;i< chapters.length; i++){ %> <% if(chapters[i].parent=='' && chapters[i].type=="course_downloads"){ %>
<% var sno = 0; if(chapters[i].downloads.length > 0){ for(var dwn_z=0; dwn_z < chapters[i].downloads.length; dwn_z++){ %> <% sno++; } } else{ %> <% } %>
S.no Name File
<%= sno+1 %> <%= chapters[i].downloads[dwn_z].name %> DOWNLOAD
No Downloads found
<% } %> <% } %>
<%- courses[0].course.about_course %>
<% include ../footer.ejs%> <% include ../scripts.ejs %> <% for(var i=0; i < chapters.length; i++){ %> <% } %>