@php $Sbalance_prnt = $Sdr_total = $Scr_total = 0; @endphp
@foreach($transactions as $head => $transactionarr)
@if($iscustom==1){{$headarr[$head]->heading}}@endif
@php $Gbalance_prnt = $Gdr_total = $Gcr_total = 0; @endphp
@foreach($transactionarr as $key => $transaction)
|
{{$resultrow[$key]->master_name.' ('.$resultrow[$key]->account_id.')'}}
{{$resultrow[$key]->address}}{{($resultrow[$key]->phone!='')?' Ph:'.$resultrow[$key]->phone:''}} TRN No: {{$resultrow[$key]->vat_no}}
|
From: {{$fromdate}} - To: {{$todate}}
|
| Type |
No |
Date |
Description |
Ref.No |
@if($jobid)Job No | @endif
Debit |
Credit |
Balance |
@foreach($transaction as $trans)
| {{$trans->voucher_type}} |
|
01-01-1970 |
|
{{($trans->reference_from=="")?$trans->reference:$trans->reference_from}} |
@if($jobid){{$trans->jobno}} | @endif
|
{{$cr_amount}} |
{{$balance_prnt}} |
@endforeach
@php $Gdr_total += $dr_total; $Gcr_total += $cr_total; @endphp
|
|
|
| @if($jobid) | @endif
Total: |
{{number_format($dr_total,2)}} |
{{number_format($cr_total,2)}} |
{{$balance_prnt}} |
@endforeach
@php $Sdr_total += $Gdr_total; $Scr_total += $Gcr_total; @endphp
@if($iscustom==1)
|
Debit |
Credit |
Balance |
| {{$headarr[$head]->heading}} Total: |
{{number_format($Gdr_total,2)}} |
{{number_format($Gcr_total,2)}} |
{{$Gbalance_prnt}} |
@endif
@endforeach
@if($iscustom==1)
@php
$Sbalance_prnt = $Sdr_total-$Scr_total;
@endphp
|
Debit |
Credit |
Balance |
| Grand Total: |
{{number_format($Sdr_total,2)}} |
{{number_format($Scr_total,2)}} |
{{$Sbalance_prnt}} |
@endif
|