DUE REPORT
@if($clientCompany == 'all')
| SL# |
Org.Name |
Address |
Product |
No of Branches |
Sale Amount |
Service Amount |
Collection Amount |
Due Amount |
@foreach($data['billingClients'] as $key => $billingClient)
| {{$key + 1}} |
{{$billingClient->clientCompanyName}} |
{{$billingClient->address}} |
@if($productId == 'all')
{{implode(' , ', array_column($billingClient->billingProduct, 'name'))}}
|
@else
{{$billingClient->productName}} |
@endif
{{($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) : '-'}} |
@endforeach
| 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