<% layout('layouts/email') %>
<h2 align="center" style="margin-bottom:5;"><b><%= booking.event.name %></b> </h2>
<p align="center" style="margin-top: 0;">
  <%= dateOutput(booking.event.eventStart) %>
  <% if (dateOutput(booking.event.eventStart) != dateOutput(booking.event.eventEnd)) { %> to
  <%= dateOutput(booking.event.eventEnd) %>
  <% } %>
</p>
<p style="margin-bottom:0;">This is your receipt for
  <%= booking.event.name %>. If you have paid through PayPal this will appear as having been paid to <%= booking.event.eventHost.paypalAddress %>.</p>
<p style="margin-bottom:0;">Thank you for booking the event! You have booked the following event tickets</p>
<ul style="margin-top:0;">
  <% for (ticket of booking.eventTickets) { %>
  <li>
    <%= currencyOutput(ticket.cost) %> - <%= ticket.description %>
  </li>
  <% } %>
</ul>
<p><a href="<%= rootUrl %>/events/<%= booking.event._id %>">View Info for <%= booking.event.name %></a></p>