Files
admin-erahn/resources/views/reports/saringan-gadaian/excel.blade.php
T

40 lines
1.3 KiB
PHP

<table>
<thead>
<tr>
<th>Bil</th>
<th>No Rujukan Tebus</th>
<th>No Rujukan Gadai Balik</th>
<th>No KP</th>
<th>Berat (g)</th>
<th>Nilai Marhun (RM)</th>
<th>Pinjaman (RM)</th>
<th>Tag Lelong</th>
<th>Tarikh Gadai</th>
</tr>
</thead>
<tbody>
@foreach ($details as $i => $item)
<tr>
<td>{{ $i + 1 }}</td>
<td>{{ $item['norujukan_tebus'] }}</td>
<td>{{ $item['norujukan_gadai_balik'] }}</td>
<td>{{ $item['nokp'] }}</td>
<td>{{ number_format($item['berat'], 2) }}</td>
<td>{{ number_format($item['nilaimarhun'], 2) }}</td>
<td>{{ number_format($item['pinjaman'], 2) }}</td>
<td>{{ isset($item['taglel_lama']) && $item['taglel_lama'] == 1 ? 'Ya' : 'Tidak' }}</td>
<td>{{ $item['t_gadai'] }}</td>
</tr>
@endforeach
<!-- Total Row -->
<tr>
<td colspan="4" style="font-weight:bold;">Jumlah Keseluruhan</td>
<td>{{ number_format($total_berat, 2) }}</td>
<td>{{ number_format($total_nm, 2) }}</td>
<td>{{ number_format($total_pinjam, 2) }}</td>
<td></td>
</tr>
</tbody>
</table>