Files
2026-01-06 12:44:24 +08:00

81 lines
2.0 KiB
PHP

<table>
<tr>
<td colspan="9" style="font-weight:bold; font-size:16px; text-align:center;">
LAPORAN RUMUSAN WTD
</td>
</tr>
<tr>
<td colspan="9" style="text-align:center;">
Cawangan : {{ $branch['details_caw'] ?? '-' }} ({{ $branch['kodcaw'] ?? '-' }})
</td>
</tr>
<tr>
<td colspan="9" style="text-align:center;">
Tarikh : {{ $startDate }} hingga {{ $endDate }}
</td>
</tr>
<tr>
<td colspan="9" style="text-align:center;">
Tarikh Dijana : {{ $generatedAt }}
</td>
</tr>
</table>
<br>
<table border="1">
<thead>
<tr style="font-weight:bold; background:#f3f3f3;">
<th>Bil</th>
<th>Batch WTD</th>
<th>No Rujukan</th>
<th>No KP</th>
<th>Nama</th>
<th>Tarikh Proses</th>
<th>Jumlah (RM)</th>
</tr>
</thead>
<tbody>
@php
$bil = 1;
$sum_baki = 0;
$jumlah = 0;
@endphp
@foreach ($details as $item)
@php
$jumlah = $item['jumlah'];
@endphp
<tr>
<td>{{ $bil++ }}</td>
<td>{{ $item['batchno'] ?? 0 }}</td>
<td>{{ $item['norujukan'] ?? null }}</td>
<td>{{ $item['nokp'] ?? null }}</td>
<td>{{ $item['nama_cust'] ?? null }}</td>
<td>{{ $item['t_proses'] ?? null }}</td>
<td>{{ number_format($jumlah, 2) }}</td>
</tr>
@php
$sum_baki += $item['jumlah'];
@endphp
@endforeach
<tr>
<td colspan="6" style="font-weight:bold; background:#eee;">
JUMLAH KESELURUHAN
</td>
<td style="font-weight:bold;">
{{ number_format($sum_baki, 2) }}
</td>
</tr>
</tbody>
</table>