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

%h1 Who profits from WestConnex?
%ul.contractors
  - @contractors.each do |contractor|
    %li.contractor
      %h2.contractor-name= contractor.name
      %span.contractor-value= number_to_currency(contractor.total_est_contract_value, precision: 0)
      %h3.contract-counter= pluralize(contractor.contracts.count, "contract")
      %ul.contracts
        - contractor.contracts.each do |contract|
          %li.contract
            %p
              #{number_to_currency(contract.value, precision: 0)}
              for
              “#{link_to(contract.description, contract.url, title: "View the contract listing at tenders.gov.nsw")}”.

Add the value and link to each contract
Add the value and link to each contract
