<%= back_link_to %>

<%= t("admin.stats.polls.title") %>

<%= t("admin.stats.polls.all") %>

<% @polls.each do |poll| %> <% end %>
<%= t("admin.stats.polls.table.poll_name") %> <%= t("admin.stats.polls.total_participants") %> <%= t("admin.stats.polls.table.origin_web") %>
<%= poll.name %> <%= poll.voters.select(:user_id).distinct.count %> <%= poll.voters.web.select(:user_id).distinct.count %>
<% @polls.each do |poll| %>

<%= t("admin.stats.polls.poll_questions", poll: poll.name) %>

<% poll.questions.each do |question| %> <% end %>
<%= t("admin.stats.polls.table.question_name") %> <%= t("admin.stats.polls.table.origin_web") %>
<%= question.title %> <%= ::Poll::Answer.by_question(question).count %>
<%= t("admin.stats.polls.table.origin_total") %>: <%= ::Poll::Answer.where(question: poll.questions) .select(:author_id).distinct.count %>
<% end %>