37 lines
1.4 KiB
PHP
37 lines
1.4 KiB
PHP
<div class="table-responsive">
|
|
<table class="table table-bordered table-striped table-hover mb-0">
|
|
<thead class="bg-success text-white">
|
|
<tr>
|
|
<th>Tanggal</th>
|
|
<th>Keterangan</th>
|
|
<th>Jenis Akun</th>
|
|
<th class="text-right">Masuk</th>
|
|
<th class="text-right">Keluar</th>
|
|
<th class="text-right">Saldo</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@forelse($report as $entry)
|
|
<tr>
|
|
<td>{{ $entry['date'] }}</td>
|
|
<td>{{ $entry['desc'] }}</td>
|
|
<td>{{ $entry['type'] }}</td>
|
|
<td class="text-right text-success">
|
|
{{ $entry['masuk'] > 0 ? 'Rp' . number_format($entry['masuk'], 0, ',', '.') : '-' }}
|
|
</td>
|
|
<td class="text-right text-danger">
|
|
{{ $entry['keluar'] > 0 ? 'Rp' . number_format($entry['keluar'], 0, ',', '.') : '-' }}
|
|
</td>
|
|
<td class="text-right font-weight-bold">
|
|
Rp{{ number_format($entry['balance'], 0, ',', '.') }}
|
|
</td>
|
|
</tr>
|
|
@empty
|
|
<tr>
|
|
<td colspan="6" class="text-center text-muted py-4">Belum ada data mutasi.</td>
|
|
</tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|