<% if @sales_funnel.any? %> <% index = 0 %> <% @sales_funnel.each do |deal_status, funnel_data| %> <% index += 1 %> <% end %>
<%= h l(:label_crm_deal_status) %> <%= h l(:label_crm_count) %> <%= h l(:label_total) %>
<%= deal_status_tag(deal_status) %> <%= h funnel_data[:count] %> <%= prices_collection_by_currency(funnel_data[:sum]).join(' / ').html_safe %>
<%= "#{l(:label_total)} (#{@sales_funnel_total[:count]}):" %> <%= prices_collection_by_currency(@sales_funnel_total[:sum]).join('
').html_safe %>
<% end %>