credit sale collection

This commit is contained in:
SUM2046
2026-07-03 14:47:43 +05:30
parent 7fba009978
commit cdb7e83a99
2 changed files with 100 additions and 5 deletions

View File

@@ -127,11 +127,21 @@
@foreach ($paymentOptions as $option)
<th>{{ $option->name }}</th>
@endforeach
<th>Due Amount</th>
</tr>
</thead>
<tbody>
@foreach ($creditCollections as $row)
<tr>
<td>{{ \Carbon\Carbon::parse($row['date'])->format('Y-m-d') }}</td>
<td>{{ $row['reference'] }}</td>
<td>{{ $row['cashier'] }}</td>
<td>{{ $row['customer'] }}</td>
<td>{{ number_format($row['grand_total'], 2) }}</td>
@foreach ($paymentOptions as $option)
<td>{{ number_format($row['methods'][$option->id] ?? 0, 2) }}</td>
@endforeach
</tr>
@endforeach
</tbody>
<tfoot style="background-color: #cdd4da; font-weight: bold;">
<tr>
@@ -140,7 +150,6 @@
@foreach ($paymentOptions as $option)
<td>0.00</td>
@endforeach
<td>0.00</td>
</tr>
</tfoot>
</table>