<?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>Order Date:</th>
				<td><?php 
        echo $entry->getCreatedAt('n/j/Y');
        ?>
</td>
            ?>
										</select>
									</td>
								</tr>
							<?php 
        } else {
            ?>
								<input type="hidden" name="vegetarian_qty" id="vegetarian_qty" value="<?php 
            echo $entry->getVegetarianQty();
            ?>
">
							<?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>