{{ 'Global' | Attribute:'EmailHeader' }}

{% capture currencySymbol %}{{ 'Global' | Attribute:'CurrencySymbol' }}{% endcapture %}

<font color="black">

<h1>{{ RegistrationInstance.RegistrationTemplate.RegistrationTerm }} Confirmation: {{ RegistrationInstance.Name }}</h1>


{% assign registrants = Registration.Registrants | Where:'OnWaitList', false %}

{% assign registrantCount = registrants | Size %}

{% if registrantCount > 0 %}

<p>

The following {{ RegistrationInstance.RegistrationTemplate.RegistrantTerm | PluralizeForQuantity:registrantCount | Downcase }}

{% if registrantCount > 1 %}have{% else %}has{% endif %} been registered for {{ RegistrationInstance.Name }}:

</p>

<ul>

    {% for registrant in registrants %} 

    <li><strong>{{ registrant.PersonAlias.Person.FullName }}</strong></li>

{% endfor %}

    </ul><p>Below is a summary of details submitted. We will be sending out further details concerning choir in a few days. </p><ul>

    

{% for registrant in registrants %} 

    

   <h3> <strong>{{ registrant.PersonAlias.Person.FullName }} Personal Details: </strong> </h3>

{% if registrant.Cost > 0 %}

- {{ currencySymbol }}{{ registrant.Cost | Format:'#,##0.00' }}

{% endif %}

{% assign feeCount = registrant.Fees | Size %}

{% if feeCount > 0 %}

<br/>{{ RegistrationInstance.RegistrationTemplate.FeeTerm | PluralizeForQuantity:registrantCount }}:

<ul>

{% for fee in registrant.Fees %}

<li>

{{ fee.RegistrationTemplateFee.Name }} {{ fee.Option }}

{% if fee.Quantity > 1 %} ({{ fee.Quantity }} @ {{ currencySymbol }}{{ fee.Cost | Format:'#,##0.00' }}){% endif %}: {{ currencySymbol }}{{ fee.TotalCost | Format:'#,##0.00' }}

</li>

{% endfor %}

</ul>

{% endif %}

</li>

        <li><strong>Nickname: </strong> {{ registrant | Attribute:'Nickname' }} </li>

        <li><strong>Gender: </strong> {{ registrant.PersonAlias.Person.Gender }} </li>

        <li><strong>Birthdate: </strong> {{ registrant.PersonAlias.Person.BirthMonth  }}.{{ registrant.PersonAlias.Person.BirthDay  }}.{{ registrant.PersonAlias.Person.BirthYear  }} </li>

        <li><strong>Grade: </strong> {{ registrant | Attribute:'Grade' }} </li>

        <li><strong>Does your child have any allergies: </strong> {{ registrant | Attribute:'allergies' }} </li>

        <li><strong>Does your child have any medical issues/concerns we should be a ware of: </strong> {{ registrant | Attribute:'medicalissues' }} </li>

         <br>     

{% endfor %}

     {% for reg in registrants %}

      <h3> <strong>Parent Information: </strong> </h3>

     <li><strong>Father's/Legal Guardian Name: </strong> {{ reg | Attribute:'FathersFirstName' }} {{ reg | Attribute:'FathersLastName' }}</li>

      <li><strong>Father's/Legal Guardian Mobile Number: </strong> {{ reg | Attribute:'FathersMobileNumber' }}</li>

      <li><strong>Add this number to a Viber Group: </strong> {{ reg | Attribute:'fatherViber' }}</li>

      <li><strong>Mother's/Legal Guardian Name: </strong> {{ reg | Attribute:'MothersFirstName' }} {{ reg | Attribute:'MothersLastName' }}</li>

      <li><strong>Mothers's/Legal Guardian Mobile Number: </strong> {{ reg | Attribute:'MothersMobileNumber' }}</li>

      <li><strong>Add this number to a Viber Group: </strong> {{ reg | Attribute:'motherViber' }}</li>

      <li><strong>Address: </strong> {{ reg | Attribute:'Address' }} </li>

      <li><strong>Add an alternative number to a Viber Group (if not listed above): </strong> {{ reg | Attribute:'AddthisNumber' }}</li>

      <li><strong>Number belongs to: </strong> {{ reg | Attribute:'NameNumber' }}</li>

  <br>

      <h3> <strong>Emergency Contact Information: </strong> </h3>

      <li><strong>Name: </strong> {{ reg | Attribute:'EmergencyFirstName' }} {{ reg | Attribute:'EmergencyLastName' }}</li>

      <li><strong>Mobile Number: </strong> {{ reg | Attribute:'EmergencyMobileNumber' }}</li>

      <li><strong>Relation to Child: </strong> {{ reg | Attribute:'RelationtoChild' }}</li>

      {% break %}

     {% endfor %}

</ul>

{% endif %}

{% assign waitlist = Registration.Registrants | Where:'OnWaitList', true %}

{% assign waitListCount = waitlist | Size %}

{% if waitListCount > 0 %}

    <p>

        The following {{ RegistrationInstance.RegistrationTemplate.RegistrantTerm | PluralizeForQuantity:registrantCount | Downcase }}

{% if waitListCount > 1 %}have{% else %}has{% endif %} been added to the wait list for {{ RegistrationInstance.Name }}:

   </p>

    

    <ul>

    {% for registrant in waitlist %}

        <li>

            <strong>{{ registrant.PersonAlias.Person.FullName }}</strong>

        </li>

    {% endfor %}

    </ul>

{% endif %}

{% if Registration.TotalCost > 0 %}

<p>

    Total Cost: {{ currencySymbol }}{{ Registration.TotalCost | Format:'#,##0.00' }}<br/>

    {% if Registration.DiscountedCost != Registration.TotalCost %}

        Discounted Cost: {{ currencySymbol }}{{ Registration.DiscountedCost | Format:'#,##0.00' }}<br/>

    {% endif %}

    {% for payment in Registration.Payments %}

        Paid {{ currencySymbol }}{{ payment.Amount | Format:'#,##0.00' }} on {{ payment.Transaction.TransactionDateTime| Date:'M/d/yyyy' }} 

        <small>(Acct #: {{ payment.Transaction.FinancialPaymentDetail.AccountNumberMasked }}, Ref #: {{ payment.Transaction.TransactionCode }})</small><br/>

    {% endfor %}

    

    {% assign paymentCount = Registration.Payments | Size %}

    

    {% if paymentCount > 1 %}

        Total Paid: {{ currencySymbol }}{{ Registration.TotalPaid | Format:'#,##0.00' }}<br/>

    {% endif %}

    

    Balance Due: {{ currencySymbol }}{{ Registration.BalanceDue | Format:'#,##0.00' }}

</p>

{% endif %}


<p>

    {{ RegistrationInstance.AdditionalConfirmationDetails }}

</p>


<p>

    If you have any questions please contact us at {{ RegistrationInstance.ContactEmail }}.

</p>


{{ 'Global' | Attribute:'EmailFooter' }}