<?php
///////////////////////////////////////////////
///  PilotAwardsSystem v2.0 by php-mods.eu  ///
///            Author php-mods.eu           ///
///            Packed at 8/12/2019          ///
///     Copyright (c) 2019, php-mods.eu     ///
///////////////////////////////////////////////

?>
<h3>Latest Award Issues</h3>
<table id="tabledlist" class="tablesorter">
    <thead>
        <tr>
            <th>Pilot</th>
            <th>Award Received</th>
            <th>Date</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
    <?php if(!$issues) {echo '<tr><td align="center" colspan="3">There are not any awards issued yet.</td></tr>';} else { 
    foreach($issues as $issue) {  ?>
        <tr>
            <td><?php echo $issue->firstname; ?> <?php echo $issue->lastname; ?></td>
            <td><?php echo $issue->name; ?></td>
            <td><?php echo $issue->dateissued; ?></td>
        </tr>
    <?php } } ?>
    </tbody>
</table>