<% provide(:title, "You have used #{@used_credits} of #{@total_credits} TestDrive lesson credits") %>
<% provide(:photo_url, @teacher.resolved_photo_url) %>

<% content_for :note do %>
  <p>
    Hello <%= @student.name %>,
  </p>

  <p>We hope you enjoyed your JamClass lesson today with <%= @teacher.name %>. You have
    used <%= @used_credits %> TestDrive credits, and you have <%= @remaining_credits %>
    remaining TestDrive lesson(s) available. If you haven’t booked your next TestDrive lesson,
    <a href="<%= User.search_url %>" style="color:#fc0">click here</a> to search our teachers and get your next
    lesson lined up today!</p>

  <p>
    <% if !@student.has_rated_teacher(@teacher) %>
      Also, please <a href="<%= @teacher.ratings_url %>" style="color:#fc0">rate your teacher</a> now for today’s lesson
      to help other students in the community find the best instructors.
    <% end %>
    And 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>
  <br/>
  <p>
    Best Regards,<br>Team JamKazam
  </p>
<% end %>


