{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} {capture assign=emptyBlockStyle }style="padding: 10px; border-bottom: 1px solid #999;background-color: #f7f7f7;"{/capture} {capture assign=emptyBlockValueStyle }style="padding: 10px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}

{$greeting},

{/if} {if $isRefund}

{ts}A refund has been issued based on changes in your registration selections.{/ts}

{else}

{ts}Below you will find a receipt for this payment.{/ts}

{if $paymentsComplete}

{ts}Thank you for completing this contribution.{/ts}

{/if} {/if}
{if $isRefund} {else} {/if} {if $receive_date} {/if} {if !empty($trxn_id)} {/if} {if !empty($paidBy)} {/if} {if !empty($checkNumber)} {/if} {if $totalAmount} {/if} {if $totalPaid} {/if} {if $amountOwed} {* This will be zero after final payment. *} {/if}
{ts}Refund Details{/ts}
{ts}This Refund Amount{/ts} {$refundAmount|crmMoney}
{ts}Payment Details{/ts}
{ts}This Payment Amount{/ts} {$paymentAmount|crmMoney}
{ts}Transaction Date{/ts} {$receive_date|crmDate}
{ts}Transaction #{/ts} {$trxn_id}
{ts}Paid By{/ts} {$paidBy}
{ts}Check Number{/ts} {$checkNumber}
{ts}Contribution Details{/ts}
{ts}Total Fee{/ts} {$totalAmount|crmMoney}
{ts}Total Paid{/ts} {$totalPaid|crmMoney}
{ts}Balance Owed{/ts} {$amountOwed|crmMoney}
{if !empty($billingName) || !empty($address)} {/if} {if !empty($credit_card_number)} {/if} {if $component eq 'event'} {if !empty($event.participant_role)} {/if} {if !empty($isShowLocation)} {/if} {if !empty($location.phone.1.phone) || !empty($location.email.1.email)} {foreach from=$location.phone item=phone} {if $phone.phone} {/if} {/foreach} {foreach from=$location.email item=eventEmail} {if $eventEmail.email} {/if} {/foreach} {/if} {*phone block close*} {/if}
{ts}Billing Name and Address{/ts}
{if !empty($billingName)}{$billingName}{/if}
{if !empty($address)}{$address|nl2br}{/if}
{ts}Credit Card Information{/ts}
{$credit_card_type}
{$credit_card_number}
{ts}Expires:{/ts} {$credit_card_exp_date|truncate:7:''|crmDate}
{ts}Event Information and Location{/ts}
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
{ts}Participant Role{/ts} {$event.participant_role}
{$location.address.1.display|nl2br}
{ts}Event Contacts:{/ts}
{if $phone.phone_type} {$phone.phone_type_display} {else} {ts}Phone{/ts} {/if} {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
{ts}Email{/ts} {$eventEmail.email}