<div class="modal" id="my-modal">
    <div class="modal_data" id="">
        <input  type="password" id="input-pass" placeholder="Enter Password">
        <input type="submit" value="OK" id="ok-btn">
    </div>
</div>

<div class="raffle__registered-data section__padding">
    <form  method="GET">
    <h3><?= $viewBag['heading'] ?></h3>
        <div class="raffle__registered-data-menu">

            <div class="raffle__registered-data-menu_search">
                <select name="table-head" id="table-head" >
                    <option value="serialNumber">Serial Number</option>
                    <option value="firstName">First Name</option>
                    <option value="lastName">Last Name</option>
                    <option value="dealerName">Dealer Name</option>
                    <option value="registeredMail">Email</option>
                </select>
                <input type="text" placeholder="Search..." name="search">
                <input type="submit" value="Search" class="search_to_hide">

            </div>
               <a href="raffle-registered.php">Refresh</a>
                <a href="../draw/">Draw</a>
        </div>
        <div class="pagination"><?php Data::get_records_prev(8); ?></div>
    <table>
        <thead>
            <th>Entry Date/Time</th>
            <th>Full Name</th>
            <th>Email</th>
            <th>Contact Number</th>
            <th>Receipt Number</th>
            <th>Receipt Amount</th>
            <th>Proof of Purchase</th>

        </thead>
        <tbody>
        <?php foreach ($model as $item) { ?>

                <tr>
                    <td><?php echo $item['SYSDATE'] ?></td>
                    <td><?php echo $item['firstName'] . " " . $item['middleInitial'] . " " . $item['lastName'] ?></td>
                    <td><?php echo $item['registeredMail'] ?></td>
                    <td><?php echo $item['contactNumber'] ?></td>
                    <td><?php echo $item['receiptNumber'] ?></td>
                    <td><?php echo $item['receiptAmount'] ?></td>
                    <td>
                        <a href="<?php echo $item['imgProofOfPurchase'] ?>" target="popup"
                            onclick="window.open('<?php echo $item['imgProofOfPurchase'] ?>','popup','width=600,height=600,scrollbars=no,resizable=no'); return false;"
                            ><img src="<?php echo $item['imgProofOfPurchase'] ?>" width="100" height="100"  >
                        </a>
                    </td>
                </tr>
        <?php } ?>
        </tbody>
    </table>
    <div class="pagination"><?php Data::get_records_prev(8); ?> </div>
    </form>
</div>