| Kode Akun |
Nama Akun |
Debit |
Kredit |
@foreach ($tranDetails as $tranBy => $transaction)
@php
$tranByDetails = explode('_', $tranBy);
$tranAmount = collect($transaction)->sum('transaction_amount');
$debit = $byGrp ? $tranAmount : 0;
$credit = $byGrp ? 0 : $tranAmount;
$tranByObj = $byGrp ? $cashLedgers[$tranByDetails[0]] : $transaction[0];
$ledgerSummeryData =
'
| ' .
@$tranByObj->ledger_code .
' |
' .
@$tranByObj->ledger_head .
' |
' .
number_format($debit, 2) .
' |
' .
number_format($credit, 2) .
' |
';
@endphp
@if ($byGrp)
{!! $ledgerSummeryData !!}
@endif
@foreach ($transaction as $tran)
@php
$debit = $byGrp ? 0 : $tran->transaction_amount;
$credit = $byGrp ? $tran->transaction_amount : 0;
$tranData = $byGrp ? $tran : $cashLedgers[$tran->dr_sub_ledger];
@endphp
| {{ $tranData->ledger_code }} |
{{ $tranData->ledger_head }}
|
{{ number_format($debit, 2) }} |
{{ number_format($credit, 2) }} |
@endforeach
@if (!$byGrp)
{!! $ledgerSummeryData !!}
@endif
@endforeach
| Total: |
@if ($set_currency->currency_position == 2)
{{ $set_currency->symbol }}
@endif
{{ number_format($voucher->transaction_amount, 2) }}
@if ($set_currency->currency_position == 1)
{{ $set_currency->symbol }}
@endif
{{ $set_currency->currency_text }}
|
@if ($set_currency->currency_position == 2)
{{ $set_currency->symbol }}
@endif
{{ number_format($voucher->transaction_amount, 2) }}
@if ($set_currency->currency_position == 1)
{{ $set_currency->symbol }}
@endif
{{ $set_currency->currency_text }}
|
|