<table class="table table-hover table-responsive">
	<thead>
		<th>Pilot ID</th>
		<th>Name</th>
		<th>Rank</th>
		<th>Amount</th>
		<th>Profile</th>
	</thead>
	<?php 
	if(!$bestrevenuedays)		
		{
	?>
			<tr><td align="center" colspan="4">No Records Today!</td></tr>
	<?php
		}
	else
		{
			foreach ($bestrevenuedays as $bestrevenueday)
				{
					$rnk = "SELECT * FROM ".TABLE_PREFIX."ranks WHERE rank = '$bestrevenueday->rank'";
					$rn = DB::get_row($rnk);
					$rank = $rn->rankimage;
					$pilotcode = PilotData::getPilotCode($bestrevenueday->code, $bestrevenueday->pilotid);
	?>
					<tr>
						<td><?php echo $pilotcode ;?></td>
						<td><?php echo $bestrevenueday->firstname.' '.$bestrevenueday->lastname ;?></td>
						<td><img src="<?php echo $rank ;?>"></td>
						<td><?php echo FinanceData::formatMoney($bestrevenueday->revenue) ;?></td>
						<td><a href='<?php echo SITE_URL; ?>/index.php/profile/view/<?php echo($bestrevenueday->pilotid) ; ?>' class="btn btn-xs btn-default" data-toggle="tooltip" title="" data-original-title="View Pilot"><i class="fa fa-eye "></i></></td>
					</tr>
	<?php 
				}
		} 
	?>
</table>
