MIF_E31211879/application/modules/Anggota/views/Detail_hutang_anggota.php

68 lines
3.2 KiB
PHP

<div class="row">
<div class="col-md-12">
<div class="card card-body printableArea">
<h3><b>Detail Hutang Anggota</b></h3>
<hr>
<div class="row">
<div class="card-body">
<div class="col-md-12">
<div class="input-daterange input-group form-sm" id="date-range">
<div class="pull-left col-md-6">
<address>
<h3> &nbsp;<b class="text-danger">BELANKON</b></h3>
<p class="text-muted m-l-5"> Perum. Demang Mulia A-16 Jember
<br>Jawa Timur Indonesia
</address>
</div>
<div class="pull-right text-right col-md-6">
<address>
<h3>Atas Nama,</h3>
<h4 class="text-danger"><?= @$anggota->nama ?></h4> <!--pemesan diambil dari controller yang manggil model -->
<p class="text-muted m-l-30"><?= @$anggota->alamat?></p>
</address>
</div>
</div>
</div>
</div>
<div class="col-md-12">
<div class="table-responsive m-t-40" style="clear: both;">
<table class="table table-hover">
<thead>
<tr>
<th>No</th>
<th>Tanggal Transaksi</th>
<th>Harga Barang</th>
<th>Biaya Kurir</th>
<th>Total Keseluruhan</th>
<th>Status Hutang</th>
</tr>
</thead>
<tbody>
<?php
$no = 1;
foreach (@$detail as $value):
?>
<tr>
<td><?php echo $no++?></td>
<td><?php echo date("d-m-Y", strtotime($value->tanggal))?></td>
<td><?php echo $this->Core->rupiah($value->total_pembayaran)?></td>
<td><?php echo $this->Core->rupiah($value->biaya_kurir)?></td>
<td><?php echo $this->Core->rupiah($value->harus_dibayar)?></td>
<td>
<?php if ($value->status_hutang == 0): ?>
<span class="badge badge-warning">Belum Lunas</span>
<?php else: ?>
<span class="badge badge-success">Lunas</span>
<?php endif; ?>
</td>
</tr>
<?php endforeach ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>