School Report : <%= @schooldetail['name'] %>

<%= render :partial=>"filter" %>
<% @subject.each do |subject| %> <% end %> <% @subject.each do |subject| %> <% end %> <% @student_array.each do |student_id,student| %> <% @subject.each do |subject| total_sub = student["data"] if total_sub[subject].present? obtained = total_sub[subject]['correctQuestionCnt'].to_i * @multiplier asse_per = total_sub[subject]['percent'] else obtained = "NA" percent = "NA" asse_per = "NA" end %> <% end %> <% end %>
School : <%= @schooldetail['name'] %> <%= @schooldetail['class'] %> SUBJECTS
Cluster : <%= @schooldetail['cluster'] %><%= @sub_names[subject] %>Score (%) Completed Assessments (%)
Child Name Max MarksMarks Scored Completed Assessements %
<%= student['name'] %> <%= student['max_marks'] %><%= obtained %> <%= asse_per %><%= (student['max_marks'] > 0) ? ((student['marks_obtained']/student['max_marks'].to_f)*100).round(2) : 'NA'%> <%= (student['ass_percent'].present?) ? student['ass_percent'] : 0 %>
<%= render :partial=>"footer" %>