-content_for :title do New OUFusion new payment for merchandise -content_for :main_body do %tr %td{width:'10%'} %td{width:'80%'} %h2="Hi #{@sales_person.first_name}" %td{width:'10%'} %tr %td{width:'10%'} %td{width:'80%'} %p "There's a new payment in for #{@order.amount} from #{@order.user.name} with reference #{@order.payment_reference} %p The details are %table %thead %tr %th Item %th Quantity %tbody - @order.orders_products.each do |op| %tr %td= op.product.name %td= op.quantity %h5 Send to:- -%w(name addr1 addr2 addr3 town county postcode country).each do |line| %p= "#{line}: #{@order.user[line]}" %p Cheers %p OUFusion Web Ordering System %td{width:'10%'}