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

?>
<h3><?php echo $data->name; ?> Award</h3>
<center><table width="60%" id="tabledlist" class="tablesorter">
<thead>
<tr><th colspan="3" align="center"><b><?php echo $data->name; ?> Award History</b></th></tr>
<tr>
<th width="5%" align="center"><b>N/I</b></th>
<th width="45%" align="center"><b>Comment</b></th>
<th width="10%" align="center"><b>Date</b></th>
</tr></thead>
<tbody>
<?php
if(!$awards)
            {echo '<tr><td><center>There are no any awards issued!</center></td></tr>';}
            else
            {
            $count = 0;
foreach($awards as $award)
{ $count++; ?>
<tr>
    <td align="center"><?php echo $count; ?></td>
    <td align="center"><?php if(!$award->comment){echo 'No comment set';} else { ?> <?php echo $award->comment; ?> <?php } ?></td>
    <td align="center"><?php echo $award->dateissued; ?></td>
</tr>
<?php } } ?></tbody>
</table></center><br />