json.left_banner_id @left_banner_id
json.left_banner_name @left_banner_name
json.course do
  json.partial! "polls/course_name",locals:{course:@course}
end

json.poll do
  json.extract! @poll, :id, :polls_name,:polls_description,:polls_status
end

json.question_types do
  json.q_counts @poll_questions_count
  json.q_singles @poll_question_singles
  json.q_doubles @poll_question_doubles
  json.q_mains @poll_question_mains
end

json.poll_questions do
  json.array! @poll_questions do |q|
    json.partial! "poll_questions/poll_questions", question: q,answers:q.poll_answers
  end
end