| {{ 1 }} |
{{ $billingClient->clientCompanyName }} |
{{ $productName }} |
{{ $openingDue > 0 ? $openingDue : '-' }} |
@foreach ($months as $month)
@php
$monthlyService = $monthlyInfo[$month]['totalService'] ?? 0;
$monthlyRecovered = $monthlyInfo[$month]['totalRecovered'] ?? 0;
$yearlyTotalService += $monthlyService;
$yearlyTotalRecovered += $monthlyRecovered;
$grandYearlyTotalService += $monthlyService;
$grandYearlyTotalRecovered += $monthlyRecovered;
@endphp
{{ $monthlyService > 0 ? $monthlyService : '-' }} |
{{ $monthlyRecovered > 0 ? $monthlyRecovered : '-' }} |
@endforeach
@php
$dueTillEndDate = $openingDue + $yearlyTotalService - $yearlyTotalRecovered;
$grandTotalDueTill += $dueTillEndDate;
@endphp
{{ $yearlyTotalService > 0 ? $yearlyTotalService : '-' }} |
{{ $yearlyTotalRecovered > 0 ? $yearlyTotalRecovered : '-' }} |
{{ $dueTillEndDate > 0 ? $dueTillEndDate : '-' }} |
| Grand Total |
{{ $totalDueAmount > 0 ? $totalDueAmount : '-' }} |
@foreach ($months as $month)
{{ $grandTotalServicePerMonth[$month] > 0 ? $grandTotalServicePerMonth[$month] : '-' }}
|
{{ $grandTotalRecoveredPerMonth[$month] > 0 ? $grandTotalRecoveredPerMonth[$month] : '-' }}
|
@endforeach
{{ $grandYearlyTotalService > 0 ? $grandYearlyTotalService : '-' }} |
{{ $grandYearlyTotalRecovered > 0 ? $grandYearlyTotalRecovered : '-' }} |
{{ $grandTotalDueTill > 0 ? $grandTotalDueTill : '-' }} |