@include('backend.layouts.partials.messages')
| # |
Type |
Account Number |
Dr |
Cr |
{{-- 1 - 12: Loop berdasarkan config yang sudah diurutkan --}}
@foreach ($configJurnal as $conf)
@php
// Ambil objek kategori dari database yang namanya cocok
$katObj = $kategoriCollection->where('name', $conf['name'])->first();
$drValue = $katObj ? ($nominals[$katObj->id] ?? 0) : 0;
$totalDr += $drValue;
@endphp
| {{ $counter++ }} |
{{ $conf['name'] }} |
{{ $conf['account'] }} |
{{ $drValue == 0 ? '' : number_format($drValue, 0, ',', '.') }} |
|
@endforeach
{{-- 13: Cash in Bank BCA --}}
@php
$cashInBankValue = $pettyCashAmount - $totalKategori;
@endphp
| {{ $counter++ }} |
Cash in Bank BCA |
170 600 00 |
@if ($cashInBankValue >= 0)
@php $totalDr += $cashInBankValue; @endphp
{{ $cashInBankValue == 0 ? '' : number_format($cashInBankValue, 0, ',', '.') }} |
|
@else
@php $totalCr += abs($cashInBankValue); @endphp
|
{{ number_format(abs($cashInBankValue), 0, ',', '.') }} |
@endif
{{-- 14: Petty Cash --}}
| {{ $counter++ }} |
Petty Cash |
|
|
@php $totalCr += $pettyCashAmount; @endphp
{{ $pettyCashAmount == 0 ? '' : number_format($pettyCashAmount, 0, ',', '.') }}
|
{{-- 15: Cash Advance (Opening) --}}
| {{ $counter++ }} |
Cash Advance (Opening Balance) |
170 600 00 |
|
@php $totalCr += 500000; @endphp
{{ number_format(500000, 0, ',', '.') }}
|
{{-- 16: Cash Advance (Ending) --}}
| {{ $counter++ }} |
Cash Advance (Ending Balance) |
170 600 00 |
@php $totalDr += 500000; @endphp
{{ number_format(500000, 0, ',', '.') }}
|
|
| Total |
{{ number_format($totalDr, 0, ',', '.') }} |
{{ number_format($totalCr, 0, ',', '.') }} |