@can('dashboard-billing-info') @if (checkSettings('reseller_bill_collection') == 'enable')

Manager (only other) Bill Collection {{ date('M') }} {{ date('Y') }}

@php $this_month_bill = 0; $previous_month_collection = 0; $this_month_collection = 0; @endphp @foreach ($resellerWiseOtherReport as $item) @php $bill = 0; foreach ($item as $r) { $bill += $r->total_client * $r->package_rate; } @endphp @php $this_month_bill += $bill; $previous_month_collection += $item->previous_monthly_bill_collection; $this_month_collection += $item->monthly_bill_collection; @endphp @endforeach
Manager Name Approximate Monthly Bill Previous Month Bill Collection This Month Bill Collection Collection(%) This Month Due
{{ $item->first()->name }} {{ $bill }} {{ $item->previous_monthly_bill_collection }} {{ $item->monthly_bill_collection }} @if($bill !=0 && $item->monthly_bill_collection != 0) {{ round(($item->monthly_bill_collection * 100) / $bill, 2) }} % @endif {{ $bill - $item->monthly_bill_collection }}
Total {{ $this_month_bill }} {{ $previous_month_collection }} {{ $this_month_collection }} @if ($this_month_bill != 0) {{ round(($this_month_collection * 100) / $this_month_bill, 2) }} % @else 0 % @endif {{ $this_month_bill - $this_month_collection }}
@endif @endcan