@can('dashboard-billing-info') @can('pop-wise-dashboard-report')

Report Pop/Sub Manager wise of Monthly Generated Bill Collection {{ date('M') }} {{ date('Y') }}

@php $dueClients = 0; $dueAmounts = 0; $clientscount = 0; $totalBill = 0; $totalAdjustment = 0; $totalPaid = 0; $totalDiscount = 0; @endphp @foreach ($popWiseBillReport as $item) @php $totalBill += $item->total_bill; $clientscount += $item->total_row; $dueClients += $item->not_paid; $dueAmounts += $item->total_bill - $item->total_paid; $totalPaid += $item->total_paid; $totalDiscount += $item->total_discount; @endphp @endforeach
Pop/Sub Manager Bill Client Bill Amount Received Client Received Amount Discount Amount Collection(%) Dues Clients Dues Amount
{{ $item->popname }} {{ $item->total_row }} {{ $item->total_bill }} {{ $item->total_row - $item->not_paid }} {{ $item->total_paid - $item->total_discount }} {{ $item->total_discount }} @if($item->total_bill!=0 && $item->total_paid != 0) {{ round(($item->total_paid * 100) / $item->total_bill,2) }}% @endif {{ $item->not_paid ?? 0}} {{ $item->total_bill - $item->total_paid }}
Total {{ $clientscount }} {{ $totalBill }} {{ $clientscount - $dueClients }} {{ round($totalPaid) }} {{ round($totalPaid) - round($totalDiscount) }} @if ($totalBill != 0) {{ number_format(($totalPaid * 100) / $totalBill, 2) }} % @else 0% @endif {{ $dueClients }} {{ round($dueAmounts) }}
@endcan @endcan