update revisi

This commit is contained in:
Jagad R R
2025-03-05 13:44:58 +07:00
parent 278fc3741d
commit ee3de88659
18 changed files with 673 additions and 121 deletions
@@ -67,7 +67,7 @@
@foreach ($kategori as $item)
@php
$drValue = $nominals[$item->id] ?? 0;
$drFormatted = $drValue == 0 ? '' : number_format($drValue, 0, ',', '.');
$drFormatted = $drValue == 0 ? '' : number_format($drValue, 0, ',', ',');
$totalDr += $drValue;
@endphp
<tr>
@@ -89,7 +89,7 @@
@php
$crValue = $budget && $budget->amount != 0 ? $budget->amount : 0;
$totalCr += $crValue;
echo $crValue == 0 ? '' : number_format($crValue, 0, ',', '.');
echo $crValue == 0 ? '' : number_format($crValue, 0, ',', ',');
@endphp
</td>
</tr>
@@ -104,7 +104,7 @@
@php
$totalCr += 500000;
@endphp
{{ number_format(500000, 0, ',', '.') }}
{{ number_format(500000, 0, ',', ',') }}
</td>
</tr>
@@ -116,7 +116,7 @@
@php
$totalDr += 500000;
@endphp
{{ number_format(500000, 0, ',', '.') }}
{{ number_format(500000, 0, ',', ',') }}
</td>
<td></td>
</tr>
@@ -124,8 +124,8 @@
<tfoot>
<tr>
<td colspan="3" class="text-right"><strong>Total</strong></td>
<td>{{ number_format($totalDr, 0, ',', '.') }}</td>
<td>{{ number_format($totalCr, 0, ',', '.') }}</td>
<td>{{ number_format($totalDr, 0, ',', ',') }}</td>
<td>{{ number_format($totalCr, 0, ',', ',') }}</td>
</tr>
</tfoot>
</table>