@if($type=='edit') @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 @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 @endif @endforeach
Account Name AmountAssign Amount
{{$oracarr[$k].' - '.$row->acname1}} {{number_format($row->amount,2)}}
{{$oractxarr[$k].' - '.$row->acname1}} {{number_format($row->tax_amount,2)}}
Total{{number_format($orvtotal,2)}}
@else @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]; @endphp @else @php $amount = $row->amount; @endphp @endif @if($amount > 0) @php $i++; $orvtotal += $row->amount; @endphp @endif @endif @endforeach @foreach($payacnts as $k => $row) @if($row->tax_amount > 0 && (in_array($row->account_id,$txrv))) @php $amount = $row->tax_amount - $txpdar[$row->account_id]; @endphp @else @php $amount = $row->tax_amount; @endphp @endif @if($amount > 0) @php $i++; $orvtotal += $amount; @endphp @endif @endforeach
Account Name AmountAssign Amount
{{$oracarr[$k].' - '.$row->acname1}} {{number_format($amount,2)}}
{{$oractxarr[$k].' - '.$row->acname1}} {{number_format($amount,2)}}
Total{{number_format($orvtotal,2)}}
@endif