json.current_attendance do json.(@current_attendance, :id, :normal_count, :all_count) end json.history_attendances @history_attendances do |attendance| end json.all_history_count @all_history_count json.normal_count @normal_count json.leave_count @leave_count json.absence_count @absence_count