{{-- @dd($dedections); --}} @forelse ($dedections as $deduction)

Deduction Report

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

Deduction Breakdown

Description Previous Month Current 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->advance_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) }}

Total Deduction: {{ number_format($deduction->total_deductions, 2) }}

Total Revenue: {{ number_format($deduction->total_revenue, 2) }}

Net Payout: {{ number_format($deduction->net_payouts, 2) }}

@empty

No deductions found.

@endforelse @if (!empty($revenues)) @php $totalRevenue = collect($revenues)->sum('total_revenue'); $totalFinalAmount = collect($revenues)->sum('final_amount'); $totalRiderCost = collect($revenues)->sum('rider_cost'); $totalNetPayouts = collect($deduction)->sum('net_payouts'); $totalDeductions = collect($deduction)->sum('total_deductions'); @endphp @if (!empty($dedections) && ($totalRevenue > 0 || $totalFinalAmount > 0 || $totalRiderCost > 0))

Overall Summary

Total Revenue Total Rider Cost Total Earning Total Deductions Total Net Payouts
{{ number_format($totalRevenue, 2) }} {{ number_format($totalRiderCost, 2) }} {{ number_format($totalFinalAmount, 2) }} {{ number_format($totalDeductions, 2) }} {{ number_format($totalNetPayouts, 2) }}
@endif @endif