h2 | Hi, #{@student.name.titleize} p strong - if @invoice.manually_billed? | You have been sent a manual Invoice. - else | New Session Invoice Details p.fs12 = Tutor.model_name.human | : #{@tutor.name.titleize} - if @invoice.invoiceable.is_a? TutoringSession p.fs12 | Course:  = @invoice.invoiceable.resource.try(:name) p.fs12 | Session:  = @invoice.invoiceable.date.strftime("%m/ %d/ %Y") - elsif @invoice.invoiceable.is_a? Question p.fs12 | Question:  = @invoice.invoiceable.title p.fs12 | Session:  = @invoice.invoiceable.due_date.strftime("%m/ %d/ %Y") p.fs12 strong | Total Amount due: $#{Money.new(@invoice.total_amount)} p.fs12 strong | To pay this invoice, simply login into your account p.fs12 = link_to "Login to Pay", @invoiceable_url, class: 'btn-Activate' - if @invoice.manually_billed? p.fs10 | you can simply mark the session as did not happen, if the session didn't happen. p.fs12.center | Thank you! br/ | - The #{Configurations::General.application_name} Team