<% provide(:title, @subject) %>

<p>
  Hello <%= @name %>,
</p>

  <% if @distribution.is_test_drive? %>
    <% if @school %>
      <h3>We hope you enjoyed your TestDrive lesson today with <%= @distribution.student.name %>.</h3>
    <% else %>
      <h3>You have earned <%= @distribution.real_distribution_display %> for your TestDrive lesson with <%= @distribution.student.name %>.</h3>
    <% end %>
    <p>
      <% if !@teacher_payment.teacher.has_rated_student(@distribution.student) %>
        If you haven't already done so, please <a href="<%= @distribution.student.student_ratings_url %>" style="color:#fc0">rate your student</a> now to help us monitor for any issues with students who may cause issues for our instructor community.
      <% end %>
      If you had technical problems during your lesson, or have questions, or would like to make suggestions on how to improve JamClass, please email us at <a href="mailto:support@jamkazam.com" style="color:#fc0">support@jamkazam.com</a>.
    </p>
  <% elsif @distribution.is_normal? %>
    <% if @school %>
      <h3>we hope you enjoyed your lesson today with <%= @distribution.student.name %>.</h3>
    <% else %>
      <h3>You have earned <%= @distribution.real_distribution_display %> for your lesson with <%= @distribution.student.name %>.</h3>
    <% end %>
    <p>
      <% if !@teacher_payment.teacher.has_rated_student(@distribution.student) %>
        If you haven't already done so, please <a href="<%= @distribution.student.student_ratings_url %>" style="color:#fc0">rate your student</a> now to help us monitor for any issues with students who may cause issues for our instructor community.
      <% end %>
      If you had technical problems during your lesson, or have questions, or would like to make suggestions on how to improve JamClass, please email us at <a href="mailto:support@jamkazam.com" style="color:#fc0">support@jamkazam.com</a>.
    </p>
  <% elsif @distribution.is_monthly? %>
    <% if @school %>
      <h3>we hope you enjoyed your <%= @distribution.month_name %> lessons with <%= @distribution.student.name %>.</h3>
    <% else %>
      <h3>You have earned <%= @distribution.real_distribution_display %> for your <%= @distribution.month_name%> lessons with <%= @distribution.student.name %>.</h3>
    <% end %>
    <p>
      <% if !@teacher_payment.teacher.has_rated_student(@distribution.student) %>
        If you haven't already done so, please <a href="<%= @distribution.student.student_ratings_url %>" style="color:#fc0">rate your student</a> now to help us monitor for any issues with students who may cause issues for our instructor community.
      <% end %>
      If you had technical problems during your lesson, or have questions, or would like to make suggestions on how to improve JamClass, please email us at <a href="mailto:support@jamkazam.com" style="color:#fc0">support@jamkazam.com</a>.
    </p>
  <% else %>
    Unknown payment type.
    <% end %>
  <br/>
  <br/>

Best Regards,<br/>
JamKazam