<?php 
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    ?>
        <?php 
    if ($formIsValid) {
        ?>
            <?php 
        $customerId = isset($_GET['id']) ? $_GET['id'] : '';
        $customer = $repo->getCustomerById($customerId);
        $payment = new \pnaika\finals\Payment();
        $payment->setHours($parkingHours);
        $amount = $payment->getHours() * 10;
        $payment->setPaymentAmount($amount);
        $payment->setPaymentDate($time);
        $payment->setCustomerId($customer->getId());
        $repo->savePayments($payment);
        print '<div class="alert alert-success" role="alert"><h3>RESERVATION SUCCESSFUL!!!!</h3>
                    <h5>VERIFY THE DETAILS BELOW.</h5></div>';
        print ' <table class="table table-striped">
                <tbody>';
        print '<tr>
            <td>CUSTOMER NAME  </td>
             <td>' . strtoupper($customer->getCustomerName()) . '</td>
        </tr>';
        print '<tr>
            <td>CONTACT NUM.</td>
            <td> ' . $customer->getPhoneNumber() . '</td>
        </tr>';
        print '<tr>
            <td> ADDRESS </td>
            <td> ' . strtoupper($customer->getAddress()) . '</td>