{{$report}}


{{date('d-m-Y',strtotime($from))}} to {{date('d-m-Y',strtotime($to))}}

@php $debit = 0; $credit = 0; @endphp @foreach($account_type as $key => $type) @if(count($trial_balance) > 0) @foreach($trial_balance as $index => $trial) @if($trial->acctype == $type->id) @if($code == 1 || $code == 5) @php $balance = $trial->debit - $trial->credit; $debit +=$balance; if($balance < 0) { $balance = "(".abs($balance).")"; } @endphp @else @php $balance = $trial->credit - $trial->debit; $credit +=$balance; if($balance < 0) { $balance = "(".abs($balance).")"; } @endphp @endif @endif @endforeach @endif @endforeach @php if($debit < 0) { $debit = "(".abs($debit).")"; } if($credit < 0) { $credit = "(".abs($credit).")"; } @endphp @if(count($trial_balance) > 0) @endif
Account Name Debit Credit
{{$type->acc_name}}
{{$trial->acc_name}} {{$balance}}
{{$trial->acc_name}} {{$balance}}
Total {{$debit}} {{$credit}}

ធ្វើនៅ​ ភ្នំពេញ ថ្ងៃទី {{\Globals::date_khmers(date('d-m-Y'))}}

អ្នកធ្វើបញ្ជី



_________________

អ្នកពិនិត្យ



_________________

ឯកភាព



_________________