div.invoice-mailer-container
div.wrapper
div.main-container
- if @invoice.vendor.logo?
= image_tag attachments["logo.#{@invoice.vendor.logo.image.file.extension}"].url, width: '150', height: '70'
= @invoice.company.name
div.w100.ml20.display-table
div.title INVOICES
div.title.with_border
span.fs12 DUE DATE
br/
= @invoice.due_date ? @invoice.due_date.strftime('%B %d, %Y') : Date.today.strftime('%B %d, %Y')
div.title
span.fs12 BALANCE DUE
br/
= number_to_currency((@invoice.request_deposit.to_f.round(2).zero? ? @invoice.total.to_f : @invoice.request_deposit.to_f.round(2)), :unit => '$')
- if @invoice.company.subdomain?
div.title
= link_to 'View Invoices', preview_company_invoice_url(@invoice, subdomain: @invoice.company.subdomain), class: 'view-link'
div.message
div.m30.fs12
| Dear #{@invoice.location.billing_person_names.first || 'Client'},
p.mt20
| Here are your invoices! We appreciate your prompt payment.
p.mt30
| Thanks for your business!
p.mt10
= @invoice.company.name
div.footer
- if @invoice.vendor.logo?
= image_tag attachments["logo.#{@invoice.vendor.logo.image.file.extension}"].url, width: '50', height: '30', class: 'vertical-align-middle'
span.inline-block.fs12
| © #{@invoice.company.name_for_invoice}, All rights reserved,
= link_to 'Privacy', '#', class: 'elements'
= link_to 'Security', '#', class: 'elements'
= link_to 'Terms of Service', '#'