@php $i=$orvtotal=0; @endphp
@foreach($payacnts as $k => $row)
@if($k>1)
@if( $row->amount > 0 && (in_array($row->account_id,$orv)) )
@php $amount = $row->amount - $pdar[$row->account_id]; $chked = true; @endphp
@if($rid!=$rvarr[$row->account_id])
@php $row->amount = 0; @endphp
@endif
@else
@php $amount = $row->amount; $chked = false; @endphp
@endif
@if($row->amount > 0)
@php $i++; $orvtotal += $row->amount; @endphp
|
{{$oracarr[$k].' - '.$row->acname1}} |
{{number_format($row->amount,2)}}
|
|
@endif
@endif
@endforeach
@foreach($payacnts as $k => $row)
@if($row->tax_amount > 0 && (in_array($row->account_id,$txrv)))
@php $tamount = $row->tax_amount - $txpdar[$row->account_id]; $chked = true; @endphp
@if($rid!=$txrvarr[$row->account_id])
@php $row->tax_amount = 0; @endphp
@endif
@else
@php $tamount = $row->tax_amount; $chked = false; @endphp
@endif
@if($row->tax_amount > 0)
@php $i++; $orvtotal += $tamount; @endphp
|
{{$oractxarr[$k].' - '.$row->acname1}} |
{{number_format($row->tax_amount,2)}}
|
|
@endif
@endforeach
| Total | {{number_format($orvtotal,2)}} | |