<%= link_to admin_poll_booth_assignments_path(@poll) do %> <%= @poll.name %> <% end %>

<%= @booth_assignment.booth.name %>

<% if @booth_assignment.booth.location.present? %>

<%= t("admin.poll_booth_assignments.show.location") %>: <%= @booth_assignment.booth.location %>

<% end %>
<% if @booth_assignment.officers.empty? %>
<%= t("admin.poll_booth_assignments.show.no_officers") %>
<% else %>

<%= t("admin.poll_booth_assignments.show.officers_list") %>

<% @booth_assignment.officers.uniq.each do |officer| %> <% end %>
<%= link_to officer.name, by_officer_admin_poll_officer_assignments_path(@poll, officer_id: officer.id) %> <%= officer.email %>
<% end %>

<%= t("admin.poll_booth_assignments.show.recounts_list") %>

<% unless @poll.recounts_confirmed? %> <% end %> <% unless @poll.recounts_confirmed? %> <% end %>
<%= t("admin.poll_booth_assignments.show.count_final") %><%= t("admin.poll_booth_assignments.show.total_system") %>
<%= total_recounts_by_booth(@booth_assignment) || "-" %> <%= @booth_assignment.voters.count %>
<% unless @poll.recounts_confirmed? %> <% (@poll.starts_at.to_date..@poll.ends_at.to_date).each do |voting_date| %> <% system_count = @voters_by_date[voting_date].present? ? @voters_by_date[voting_date].size : 0 %> "> <% end %>
<%= t("admin.poll_booth_assignments.show.date") %> <%= t("admin.poll_booth_assignments.show.count_by_system") %>
<%= l voting_date %> <%= system_count %>
<% end %>
<%= render "results" %>