%h1 Who profits from WestConnex?
%ul.contractors
  - @contractors.each do |c|
    %li.contractor
      %h2.contractor-name= c.name
      %span.contractor-value= number_to_currency(c.total_est_contract_value, precision: 0)
      %h3.contract-counter= pluralize(c.contracts.count, "contract")

%h1 Who profits from WestConnex?
%ul.contractors
  - @contractors.each do |c|
    %li.contractor
      %h2.contractor-name= c.name
      %span.contractor-value= number_to_currency(c.total_est_contract_value, precision: 0)
      %h3.contract-counter= pluralize(c.contracts.count, "contract")
      %ul.contracts
        - c.contracts.each do |contract|
          %li.contract
            %p= contract.description

Add list of contracts of each contractor
Add list of contracts of each contractor
