@extends('layouts.app') @section('content')
{{ $summary['total_resellers'] }} resellers
| Customer | Current Month Bill | Previous Due | Total Outstanding | Current Month Receive | Current Month Invoice Due | Month to Month Due | Closing Due Balance | Advance | Payment Rate |
|---|---|---|---|---|---|---|---|---|---|
|
{{ $data['customer']->name ?? 'Unknown' }}
@if($data['customer']->company_name)
{{ $data['customer']->company_name }} @endif |
৳ {{ number_format($data['current_month_bill'], 0) }} | ৳ {{ number_format($data['previous_due'], 0) }} | ৳ {{ number_format($data['total_outstanding'], 0) }} | ৳ {{ number_format($data['current_month_receive'], 0) }} | ৳ {{ number_format($data['current_month_invoice_due'], 0) }} | ৳ {{ number_format($data['month_to_month_due'], 0) }} | ৳ {{ number_format($data['closing_due_balance'], 0) }} | ৳ {{ number_format($data['advance'], 0) }} | {{ number_format($data['payment_rate'], 1) }}% |
| TOTAL: | ৳ {{ number_format(array_sum(array_column($customerData, 'current_month_bill')), 0) }} | ৳ {{ number_format(array_sum(array_column($customerData, 'previous_due')), 0) }} | ৳ {{ number_format(array_sum(array_column($customerData, 'total_outstanding')), 0) }} | ৳ {{ number_format(array_sum(array_column($customerData, 'current_month_receive')), 0) }} | ৳ {{ number_format(array_sum(array_column($customerData, 'current_month_invoice_due')), 0) }} | ৳ {{ number_format(array_sum(array_column($customerData, 'month_to_month_due')), 0) }} | ৳ {{ number_format(array_sum(array_column($customerData, 'closing_due_balance')), 0) }} | ৳ {{ number_format(array_sum(array_column($customerData, 'advance')), 0) }} | @php $totalOutstandingSum = array_sum(array_column($customerData, 'total_outstanding')); $totalReceiveSum = array_sum(array_column($customerData, 'current_month_receive')); $overallPaymentRate = $totalOutstandingSum > 0 ? ($totalReceiveSum / $totalOutstandingSum) * 100 : 0; @endphp {{ number_format($overallPaymentRate, 1) }}% |
No invoices found for this sub-tag in the selected date range.
This could mean: