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: 'auto', 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 - if @invoice.invoice_emails.exists? and @invoice.invoice_emails.last.email_message.present? = simple_format(@invoice.invoice_emails.last.email_message) - else | 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: 'auto', height: '30', class: 'vertical-align-middle' span.inline-block.fs12 | © #{@invoice.company.name_for_invoice}, All rights reserved, = link_to 'Privacy', page_url('privacy_policy', subdomain: @invoice.vendor.subdomain), target: '_blank', class: 'elements' - unless is_rael_app? = link_to 'Terms of Service', page_url('terms', subdomain: @invoice.vendor.subdomain), target: '_blank', class: 'elements' = link_to 'License Agreement', page_url('eula', subdomain: @invoice.vendor.subdomain), target: '_blank'