new commit

This commit is contained in:
Fiqh Pratama
2025-10-12 18:29:07 +07:00
parent aa3a1807aa
commit 9952968d82
26 changed files with 404 additions and 173 deletions
@@ -235,6 +235,7 @@
if ($('#dataTable-table').length) {
$('#dataTable-table').DataTable({
responsive: false,
pagging: true,
dom: 'Blfrtip',
lengthMenu: [ [10, 25, 50, -1], [10, 25, 50, "All"] ], // Control the entries dropdown
buttons: [
@@ -70,6 +70,8 @@
$drFormatted = $drValue == 0 ? '' : number_format($drValue, 0, ',', ',');
$totalDr += $drValue;
@endphp
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $item->name }}</td>
@@ -77,9 +79,28 @@
<td>{{ $drFormatted }}</td>
<td></td>
</tr>
@endforeach
<!-- cash in advance -->
<tr>
<td>{{ $kategori->count() + 1 }}</td>
<td>Cash in Balance</td>
<td>170 600 00</td>
<td>@php
$crValue = $budget && $budget->amount != 0 ? $budget->amount : 0;
$crValue -= $totalDr ;
echo $crValue == 0 ? '' : number_format($crValue, 0, ',', ',');
@endphp</td>
<td>
</td>
</tr>
<!-- petty cash -->
<tr>
<td>{{ $kategori->count() + 1 }}</td>
<td>Petty Cash</td>