<td><?php 
epl_e('Amount Paid');
?>
</td>
                                <td><?php 
echo get_the_regis_payment_amount();
?>
</td>
                            </tr>
                            <tr class="balance">
                                <td><?php 
epl_e('Balance Due');
?>
</td>
                                <td><?php 
echo get_the_regis_balance_due();
?>
</td>
                            </tr>

                        </tbody>
                    </table>
                    <?php 
global $email_regis_form;
echo $email_regis_form;
?>

                </div>


                    </tr> 
                <?php 
    }
    ?>
                <tr>
                    <td><?php 
    epl_e('Total');
    ?>
</td>
                    <td><?php 
    echo get_the_regis_total_amount();
    ?>
</td>
                </tr>
                <?php 
    $balance = get_the_regis_balance_due();
    ?>
                <tr class="balance" style="background-color: #fcf8e3;">
                    <td><?php 
    epl_e('Balance Due');
    ?>
</td>
                    <td>
                        <?php 
    echo epl_get_formatted_curr($balance, null, true);
    $show_pay_now = epl_get_setting('epl_registration_options', '_epl_enable_pay_now_link', 10) == 10;
    $show_pay_now = apply_filters('epl_show_pay_now_link', $show_pay_now);
    if ($balance > 0 && $show_pay_now) {
        echo '&nbsp;' . epl_anchor(epl_get_waitlist_approved_url(true, 'p'), epl__('Pay Now'), null);
    }
    ?>