@forelse ($dedections as $deduction) @php $revenue = $revenues->firstWhere('user_id', $deduction->user_id); @endphp

Final Report for {{ $deduction->user_name }}

User Designation Month Total Revenue Total Deductions Net Payout
{{ $deduction->user_name }} {{ $deduction->designation }} {{ \Carbon\Carbon::parse($deduction->month)->format('F Y') }} {{ number_format(optional($revenue)->total_revenue ?? 0, 2) }} {{ number_format($deduction->total_deductions, 2) }} {{ number_format($deduction->net_payouts, 2) }}

Revenue Breakdown

{{-- @dd($revenue); --}} @if ($revenue) @else @endif
ID {{ $revenue->id }}
User ID {{ $revenue->user_id }}
User Name {{ $revenue->user_name }}
Date From {{ $revenue->date_from }}
Date To {{ $revenue->date_to }}
Product Type {{ $revenue->product_type }}
Total Leads {{ $revenue->total_leads }}
Total Submission {{ $revenue->total_submission }}
Total In-Process {{ $revenue->total_inprocess }}
Total Closed {{ $revenue->total_closed }}
Total Revenue {{ $revenue->total_revenue }}
Rider Cost {{ $revenue->rider_cost }}
Clawback Amount {{ $revenue->clawback_amount }}
Advances {{ $revenue->advances }}
Deductions {{ $revenue->dedection_if_needed }}
Elife % {{ $revenue->elife_percentage }}
Wireless Commission {{ $revenue->wireless_commission }}
Postpaid Commission {{ $revenue->postpaid_commission }}
Final Amount {{ $revenue->final_amount }}
Month {{ $revenue->month }}
Status {{ $revenue->status }}
Created At {{ $revenue->created_at }}
Updated At {{ $revenue->updated_at }}
No revenue data available

Deduction Breakdown

Description Previous Month This Month Total Final Amount
CF Deduction {{ number_format($deduction->cf_d_previous_month, 2) }} {{ number_format($deduction->cf_d_total, 2) }} {{ number_format($deduction->cf_d_final_amount, 2) }}
Advance Taken {{ number_format($deduction->advanace_taken_previous_month, 2) }} {{ number_format($deduction->advance_taken_this_month_total, 2) }} {{ number_format($deduction->advance_taken_this_month_total_final_amount, 2) }}
Loan Installments {{ number_format($deduction->loan_installments_previous_month, 2) }} {{ number_format($deduction->loan_installments_total, 2) }} {{ number_format($deduction->loan_installments_total_final_amount, 2) }}
Non-Compliance {{ number_format($deduction->non_compliance_cb_previous_month, 2) }} {{ number_format($deduction->non_compliance_cb_total, 2) }} {{ number_format($deduction->non_compliance_cb_total_final_amount, 2) }}
Rider Cost LGS {{ number_format($deduction->rider_cost_ic_previous_month, 2) }} {{ number_format($deduction->rider_cost_ic_total, 2) }} {{ number_format($deduction->rider_cost_ic_total_final_amount, 2) }}
Rider Cost Other CP {{ number_format($deduction->rider_cost_other_cp_previous_month, 2) }} {{ number_format($deduction->rider_cost_other_cp_total, 2) }} {{ number_format($deduction->rider_cost_other_cp_total_final_amount, 2) }}
Sim Card Charges {{ number_format($deduction->sim_d_charges_previous_month, 2) }} {{ number_format($deduction->sim_d_charges_total, 2) }} {{ number_format($deduction->sim_d_charges_total_final_amount, 2) }}
Admin Fee {{ number_format($deduction->admin_fee_previous_month, 2) }} {{ number_format($deduction->admin_fee_total, 2) }} {{ number_format($deduction->admin_fee_total_final_amount, 2) }}
WPS {{ number_format($deduction->wps_previous_month, 2) }} {{ number_format($deduction->wps_total, 2) }} {{ number_format($deduction->wps_total_final_amount, 2) }}
Insurance {{ number_format($deduction->insurance_previous_month, 2) }} {{ number_format($deduction->insurance_total, 2) }} {{ number_format($deduction->insurance_total_final_amount, 2) }}
Mis Deductions {{ number_format($deduction->mis_dd_previous_month, 2) }} {{ number_format($deduction->mis_dd_total, 2) }} {{ number_format($deduction->mis_dd_final_amount, 2) }}
Bank Charges {{ number_format($deduction->bank_charges_previous_month, 2) }} {{ number_format($deduction->bank_charges_total, 2) }} {{ number_format($deduction->bank_charges_total_final_amount, 2) }}
@empty

No final report found.

@endforelse