@include('accounts.voucher.voucherHeader')
@php $date = DateTime::createFromFormat('Y-m-d', $voucher->transaction_date)->format('d/m/Y'); @endphp @if (!empty($voucher->remarks)) @endif

{{ $companyDetails }}

{{ $voucherName }}

Nomor Transaksi: {{ $voucher->voucher_code }} Tanggal: {{ $date }}
@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 = ' '; @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 @endforeach @if (!$byGrp) {!! $ledgerSummeryData !!} @endif @endforeach
Kode Akun Nama Akun Debit Kredit
' . @$tranByObj->ledger_code . ' ' . @$tranByObj->ledger_head . ' ' . number_format($debit, 2) . ' ' . number_format($credit, 2) . '
{{ $tranData->ledger_code }} {{ $tranData->ledger_head }} {{ number_format($debit, 2) }} {{ number_format($credit, 2) }}
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 }}
Terbilang: {{ $amount_in_word }} Taka
Keterangan: {{ $voucher->remarks }}
@include('accounts.voucher.voucherFooter')