Try this! Just edit the button class to your own if you don't have Bootstrap 4.
<?php
$count = 10;
$pireps = PIREPData::getRecentReportsByCount($count);
?>
<table class="table table-striped mt30" width="100%" cellspacing="0">
<tr>
<th>Flight</th>
<th>Departure</th>
<th>Arrival</th>
<th>Aircraft</th>
<th>Duration</th>
<th>Landing</th>
<th>Status</th>
</tr>
<?php
if(count($pireps) > 0)
{
foreach ($pireps as $pirep)
{
$pilotinfo = PilotData::getPilotData($pirep->pilotid);
$pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid);
$acrid = OperationsData::getAircraftByReg($pirep->registration);
echo '<tr>';
echo '<td><a href="'.SITE_URL.'/index.php/pireps/viewreport/'.$pirep->pirepid.'">'.$pirep->code.$pirep->flightnum.'</a></td>';
echo '<td>'.$pirep->depicao.'</td>';
echo '<td>'.$pirep->arricao.'</td>';
echo '<td>'.$pirep->aircraft.'</td>';
echo '<td>'.$pirep->flighttime.'</td>';
echo '<td>'.$pirep->landingrate.' ft/m</td>';
if($pirep->accepted == PIREP_ACCEPTED)
echo '<td><button type="button" class="btn btn-outline btn-success btn-xs mb-2">Flight Approved</button></td>';
elseif($pirep->accepted == PIREP_REJECTED)
echo '<td><button type="button" class="btn btn-outline btn-danger btn-xs mb-2">Flight Rejected</button></td>';
elseif($pirep->accepted == PIREP_PENDING)
echo '<td><button type="button" class="btn btn-outline btn-primary btn-xs mb-2">Approval Pending</button></td>';
elseif($pirep->accepted == PIREP_INPROGRESS)
echo '<td><button type="button" class="btn btn-outline btn-primary btn-xs mb-2">On Progress</button></td>';
echo '</tr>';
}
}
else
{
echo '<tr><td>There are no recent flights!</td></tr>';
}
?>
</tbody>
</table>
<div class="clear"></div>
<div class="clear"></div>