MINI Sh3ll
<?
$summary = getDatewiseSummary(date('Y-m-d'));
/*print '<pre>';
print_r($summary);
die;*/
?>
<div class="card animated zoomIn" >
<div class="card-header bg-transeperent header-elements-inline border-bottom-teal border-bottom-2 text-dark">
<h5 class="card-title">Datewise Operatorwise Summary</h5>
<div class="card-header-right pt-0">
Last Updated : <span id="lblLastUpdated"></span>
</div>
</div>
<div class="table-responsive mt-2">
<div class="chart p-5 d-flex justify-content-center align-items-center" id="nodata1386589293" style="display:none !important;/*height:393px;*/"></div>
<div id="loader1386589293" style="padding: 20px 0px; text-align: center; display: none;">
<i class="icon-spinner6 spinner mr-2"></i>Loading Table...
</div>
<table class="table table-bordered table-xxs">
<thead class="bg-teal " >
<tr>
<th rowspan="3" class="text-center" nowrap="">Date</th>
<th colspan="2" class="text-center" nowrap="">Total Requests</th>
<th colspan="8" class="text-center" nowrap="">Operatorwise Requests & Earnings</th>
</tr>
<tr>
<th rowspan="2" class="text-center" nowrap="">Requests</th>
<th rowspan="2" class="text-center" nowrap="">Earnings</th>
<th colspan="2" class="text-center" nowrap="">Airtel</th>
<th colspan="2" class="text-center" nowrap="">Vodafone</th>
<th colspan="2" class="text-center" nowrap="">Vodafone-Idea</th>
<th colspan="2" class="text-center" nowrap="">Reliance-Jio</th>
</tr>
<tr>
<th class="text-center" nowrap="">Requests</th>
<th class="text-center" nowrap="">Earnings</th>
<th class="text-center" nowrap="">Requests</th>
<th class="text-center" nowrap="">Earnings</th>
<th class="text-center" nowrap="">Requests</th>
<th class="text-center" nowrap="">Earnings</th>
<th class="text-center" nowrap="">Requests</th>
<th class="text-center" nowrap="">Earnings</th>
</tr>
</thead>
<tbody>
<? foreach($summary as $s){?>
<tr>
<td class="text-center"><?=date('d-M-Y', strtotime($s['date']))?></td>
<td class="text-right"><?=number_format($s['total_requests'],0)?></td>
<td class="text-right <?=$s['total_earnings'] <= 0 ? 'bg-danger' : 'bg-success'?>"><?=number_format($s['total_earnings'],2)?></td>
<td class="text-right"><?=number_format($s['airtel_requests'],0)?></td>
<td class="text-right <?=$s['airtel_earnings'] <= 0 ? 'bg-danger' : 'bg-success'?>"><?=number_format($s['airtel_earnings'],2)?></td>
<td class="text-right"><?=number_format($s['vodafone_requests'],0)?></td>
<td class="text-right <?=$s['vodafone_earnings'] <= 0 ? 'bg-danger' : 'bg-success'?>"><?=number_format($s['vodafone_earnings'],2)?></td>
<td class="text-right"><?=number_format($s['vodafone_idea_requests'],0)?></td>
<td class="text-right <?=$s['vodafone_idea_earnings'] <= 0 ? 'bg-danger' : 'bg-success'?>"><?=number_format($s['vodafone_idea_earnings'],2)?></td>
<td class="text-right"><?=number_format($s['reliance_jio_requests'],0)?></td>
<td class="text-right <?=$s['reliance_jio_earnings'] <= 0 ? 'bg-danger' : 'bg-success'?>"><?=number_format($s['reliance_jio_earnings'],2)?></td>
</tr>
<? } ?>
</tbody>
</table>
</div>
</div>
OHA YOOOO