<% include ../styles.ejs %> ADMI <% include ../header.ejs %>

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

<% var check_taketest = ""; var check_practicetest = ""; var check_quiz = ""; for(var i=0; i < chapters.length; i++){ %> <% if(chapters[i].type!='course_downloads' && chapters[i].parent=='' && chapters[i].chapter_type!='independent' ){ %>
<% for(var j=0; j < chapters.length; j++){ if(chapters[j].parent == chapters[i].uuid && chapters[j].chapter_type=="chapter" ){ %>
<% for(var z=0; z < chapters.length; z++){ %> <% if(chapters[z].parent==chapters[j].uuid && chapters[z].chapter_type=="lesson"){ %> <% }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=="qatest" ){ %> <% } else if( chapters[z].parent==chapters[j].uuid && chapters[z].type=="quiz" ){ %> <% } else if( chapters[z].parent==chapters[j].uuid && chapters[z].type=="assignment" ){ %> <% } %> <% } %>
<% }else if(chapters[j].parent==chapters[i].uuid && chapters[j].chapter_type=="lesson" ){ %> <% } else if( chapters[j].parent==chapters[i].uuid && chapters[j].chapter_type=="downloads" ){ %> <% }else if( chapters[j].parent==chapters[i].uuid && chapters[j].chapter_type=="test" ){ %> <% } else if( chapters[j].parent==chapters[i].uuid && chapters[j].chapter_type=="qatest" ){ %> <% } else if( chapters[j].parent==chapters[i].uuid && chapters[j].chapter_type=="quiz" ){ %> <% } else if( chapters[j].parent==chapters[i].uuid && chapters[j].chapter_type=="assignment" ){ %> <% } %> <% } %>
<% } else if( chapters[i].parent=='' && chapters[i].chapter_type=="lesson" ){ %> <% }else if( chapters[i].parent=='' && chapters[i].chapter_type=="assignment" ){ %> <% } else if( chapters[i].parent=='' && chapters[i].chapter_type=="downloads" ){ %> <% } else if( chapters[i].parent=='' && chapters[i].chapter_type=="test" && chapters[i].type!="independent" ){ %> <% } else if( chapters[i].parent=='' && chapters[i].chapter_type=="quiz" ){ %> <% } %> <% } %>
<% if(assignment_report.length > 0){ var j = 0 for(var i=0;i< assignment_report.length; i++){ if(assignment_report[i].exam_type != "test"){ j++ %> <% } } } %>
S.No Chapter Name Task Type Standrd Status
<%= j %> <%= assignment_report[i].chapter.name %> <% var assignment_check = ""; if(assignment_report[i].exam_type == "qatest"){ assignment_check = "Q/A"; }else if(assignment_report[i].exam_type == "test"){ assignment_check = "Quiz Test"; }else if(assignment_report[i].exam_type == "lessoncomplete"){ assignment_check = "Lesson Completed"; }else{ assignment_check = "Assignment"; } %> <%= assignment_check %> <% if(assignment_report[i].standards && assignment_report[i].standards.length > 0){ %> <%= assignment_report[i].standards[0].competencestandard_title; %> <% }else{ %> <%= "No Standard" %> <% } %> <%= assignment_report[i].review_status %>
<% 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 Chapter Name File
<%= sno+1 %> <%= chapters[i].name %> <%= chapters[i].downloads[dwn_z].name %> DOWNLOAD
No Downloads found
<%- courses[0].course.aboutcourse %>
<% var playArr = []; var playArrCount = []; if(playcards && playcards.length > 0){ var playcardslength = playcards.length; var played = 0; var yettoplay = 0; var playcourse_levelcount = {}; for(var p=0; p< playcards.length;p++){ if(playcards[p].completed_students.indexOf(studentId) > -1){ played++; }else{ yettoplay++; } playArrCount.push(playcards[p].playcourse_level); if(playArr.includes(playcards[p].playcourse_level)) { } if(!playArr.includes(playcards[p].playcourse_level)) { playArr.push(playcards[p].playcourse_level); %> <% } } } var count = {}; playArrCount.forEach(function(i) { count[i] = (count[i]||0) + 1;}); for(var i in count){ %> <% } %>

Total Play Cards : <%= playcards.length %> Played Cards : <%= played %> Yet to Play Cards : <%= yettoplay%>

<% if(playcards.length > 0){ for(var p=0; p< playcards.length;p++){ if(playcards[p].completed_students.indexOf(studentId) == -1){ %>

<%= playcards[p].playcourse_title; %>

<% if(playcards[p].playcourse_video !=""){ %> <%- playcards[p].playcourse_video; %> <% }else if(playcards[p].playcourse_audio !=""){ %> <%- playcards[p].playcourse_audio; %> <% }else if(playcards[p].playcourse_other !=""){ %> <%- playcards[p].playcourse_other; %> <% }else if(playcards[p].playcourse_image !=""){ %> <% } %>

<%= playcards[p].description; %>

<% if(playcards[p].assigned_chapters && playcards[p].assigned_chapters.length > 0 ){ %>

You can read more about this at

<% for(var c=0; c < playcards[p].assigned_chapters.length; c++){ if(playcards[p].assigned_chapters[c].course == courseId){ %>

<%= playcards[p].assigned_chapters[c].name %>

<% } } } %>
<% } } } %>
<% include ../footer.ejs%> <% include ../scripts.ejs %> <% for(var i=0; i < chapters.length; i++){ %> <% } %>