@include('backend.layouts.partials.messages')
| # |
Type |
Account Number |
Dr |
Cr |
@php
$totalDr = 0;
$totalCr = 0;
@endphp
@foreach ($kategori as $item)
@php
$drValue = $nominals[$item->id] ?? 0;
$drFormatted = $drValue == 0 ? '' : number_format($drValue, 0, ',', ',');
$totalDr += $drValue;
@endphp
| {{ $loop->iteration }} |
{{ $item->name }} |
{{ $item->account_number }} |
{{ $drFormatted }} |
|
@endforeach
| {{ $kategori->count() + 1 }} |
Petty Cash |
|
|
@php
$crValue = $budget && $budget->amount != 0 ? $budget->amount : 0;
$totalCr += $crValue;
echo $crValue == 0 ? '' : number_format($crValue, 0, ',', ',');
@endphp
|
{{-- Static Rows --}}
| {{ $kategori->count() + 2 }} |
Cash Advance (Opening Balance) |
{{ $kategori_bca->account_number }} |
|
@php
$totalCr += 500000;
@endphp
{{ number_format(500000, 0, ',', ',') }}
|
| {{ $kategori->count() + 3 }} |
Cash Advance (Ending Balance) |
{{ $kategori_bca->account_number }} |
@php
$totalDr += 500000;
@endphp
{{ number_format(500000, 0, ',', ',') }}
|
|
| Total |
{{ number_format($totalDr, 0, ',', '.') }} |
{{ number_format($totalCr, 0, ',', '.') }} |