<?php 

function sms_payment_report_cb() {
	$support = new support;
	$report = $support->fetch_sms_details('payments');
	$i = 1;
	?>
	<div class="row">
		<div class="col-md-12">
			<div class="panel panel-custom bg-white">
			    <div class="panel-heading">
			        <h1>Payment History</h1>
			    </div>
		        <div class="panel-body instruction table-responsive">
		        	<table id="bootstrap-data-table-export" class="table table-striped table-bordered">
			            <thead>
			              	<tr>
				                <th>SN</th>
								<th>Amount</th>
								<th>Reference</th>
								<th>Date</th>
			              	</tr>
			            </thead>
			            <tbody>
			            	<?php if (_count($report) > 0): foreach ($report as $report_obj) : ?>
			            		<tr>
			            			<td><?php echo $i; ?></td>
			            			<td><?php echo toMoney($report_obj->amount); ?></td>
			            			<td><?php echo $report_obj->reference; ?></td>
			            			<td><?php echo $report_obj->date; ?></td>
			            		</tr>
			            	<?php $i++; endforeach; endif; ?>
			            </tbody>
			        </table>
				</div>
			</div>
		</div>
	</div>
	<?php
}