<?php if (isset($_POST['form'])) { ?> <div class="alert alert-danger"> There was a problem processing your credit card. Please try again. </div> <?php } ?> <?php if ($entry->getId() !== NULL && $entry->getCreatedAt() == $timestamp) { ?> <?php if ($entry->getPaidAt() !== NULL && $entry->getAmountDue() == 0) { ?> <div class="alert alert-success"> Thank you for your payment! </div> <?php } ?> <table class="table"> <tr> <th>Date:</th> <td><?php echo $entry->getCreatedAt('n/j/Y'); ?> </td>
</tr> <?php if ($entry->getDonationAmount() > 0) { ?> <tr> <th>Donation Amount</th> <td>$<?php echo number_format($entry->getDonationAmount(), 2); ?> </td> </tr> <?php } ?> <?php if ($entry->getAmountDue() > 0) { ?> <tr> <th>Amount Due:</th> <td>$<?php echo number_format($entry->getAmountDue(), 2); ?> </td> </tr> <?php } ?> <?php if ($entry->getPaymentAmount() > 0) { ?> <tr>