credit sale collection
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user