h2 | Dear #{@payee.name}, - if @invoice.invoiceable.is_a? TutoringSession - resource_name = @invoice.invoiceable.resource.name - date = @invoice.invoiceable.date.strftime("%m/ %d/ %Y") - else - date = @invoice.updated_at.strftime("%m/ %d/ %Y") p - if @invoice.manually_billed? | Your #{Configurations::General.application_name} Invoice created on #{date} - else |Your #{Configurations::General.application_name} Invoice for #{resource_name} held on #{date} | has been paid by  = @payer.name p | Thanks! p | - The #{Configurations::General.application_name} Team