<hr>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Order Id</th>
<th>Nama</th>
<th>Gender</th>
<th>Tingkat</th>
<th>NISM</th>
<th>Gross Amount</th>
<th>Paymet Type</th>
<th>Bank</th>
<th>VA Number</th>
<th>Transaction Time</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<?php if(is_array($midtrans)): ?>
<?php foreach($midtrans as $d):?>
<tr>
<td><?php echo $d->order_id; ?></td>
<td><?php echo $d->nama; ?></td>
<td><?php echo $d->gender; ?></td>
<td><?php echo $d->pendidikan; ?></td>
<td><?php echo $d->nism; ?></td>
<td align="right"><?php echo number_format($d->gross_amount,'0','',','); ?></td>
<td><?php echo $d->payment_type; ?></td>
<td><?php echo $d->bank; ?></td>
<td><?php echo $d->va_number; ?></td>
<td><?php echo $d->transaction_time; ?></td>
<td>
<?php
if($d->status_code == "200") {
?>
<span for="" class="badge bg-success">Succes</span>
<?php
} else {
?>
<span for="" class="badge bg-warning">Pending</span>
<?php
}
?>
</td>
</tr>
<?php endforeach;?>
<?php endif; ?>
</table>