Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h4><i class="fa fa-shopping-cart"></i> Data Transaksi</h4>
- <hr />
- <br />
- <div class="row">
- <table class="bordered responsive-table col m10 s12">
- <thead>
- <tr>
- <th width="5%" class="center">#</th>
- <th width="30%" class="center">Id Transaksi</th>
- <th width="15%" class="center">Tanggal Pesan</th>
- <th width="15%" class="center">Batas Bayar</th>
- <th width="15%" class="center">Total Biaya</th>
- <th width="10%" class="center">Status</th>
- <th width="15%" class="center">opsi</th>
- </tr>
- </thead>
- <tbody>
- <?php
- $tody = (abs(strtotime(date("Y-m-d"))));
- $i = 1;
- foreach ($get->result() as $key) :
- ?>
- <tr>
- <td class="center"><?= $i++; ?></td>
- <td class="center"><?= $key->id_order; ?></td>
- <td class="center"><?= date("d M Y", strtotime($key->tgl_pesan)); ?></td>
- <td class="center"><?= date("d M Y", strtotime($key->bts_bayar)); ?></td>
- <td style="text-align:right">Rp. <?= number_format($key->total,0, ',', '.') ?>,-</td>
- <td class="center">
- <?php
- $batas = (abs(strtotime($key->bts_bayar)));
- if ($today > $batas && $key->status == 'belum'){
- echo 'kedaluarsa';
- }else{
- echo ucfirst($key->status);
- }
- ?>
- </td>
- <td><?= $i++; ?></td>
- </tr>
- <?php endforeach; ?>
- </tbody>
- </table>
- </div>
- <br />
- <div class="right">
- <button type="button" class="btn red" onclick="window.history.go(-1)">Kembali</button>
- </div>
- <br/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement