DUE REPORT

@if($clientCompany == 'all') @foreach($data['billingClients'] as $key => $billingClient) @if($productId == 'all') @else @endif @endforeach
SL# Org.Name Address Product No of Branches Sale Amount Service Amount Collection Amount Due Amount
{{$key + 1}} {{$billingClient->clientCompanyName}} {{$billingClient->address}} {{implode(' , ', array_column($billingClient->billingProduct, 'name'))}} {{$billingClient->productName}}{{($billingClient->numberOfBranch >0 ) ? $billingClient->numberOfBranch : '-'}} {{($billingClient->saleAmount > 0) ? number_format($billingClient->saleAmount,2) : '-'}} {{($billingClient->serviceAmount > 0) ? number_format($billingClient->serviceAmount,2) : '-'}} @if($billingClient->saleAmount > 0 || $billingClient->serviceAmount > 0) {{number_format($billingClient->collectionAmount,2)}} @else - @endif {{($billingClient->dueAmount > 0) ? number_format($billingClient->dueAmount,2) : '-'}}
Total {{($totalSaleAmount > 0) ? number_format($totalSaleAmount,2) : '-'}} {{($totalServiceAmount > 0) ? number_format($totalServiceAmount,2) : '-'}} @if($totalSaleAmount > 0 || $totalServiceAmount > 0) {{number_format($totalCollectionAmount,2)}} @else - @endif {{($totalDueAmount > 0 ) ? number_format($totalDueAmount,2) : '-'}}
@endif