json.current_attendance @current_attendance do |attendance|
  json.partial! 'student_attendance', locals: {attendance: attendance}
end

json.history_attendances @history_attendances do |attendance|
  json.partial! 'student_attendance', locals: {attendance: attendance}
end

json.all_history_count @all_history_count
json.normal_count @normal_count
json.leave_count @leave_count
json.absence_count @absence_count