@extends('layouts.portal') @section('title', 'Agent Withdrawal') @section('page_title', 'Monthly Earnings') @section('page_subtitle', 'View your monthly commission and payment status') @section('sidebar') @include('agent.partials.sidebar', ['active' => 'withdrawal']) @endsection @section('content')

Your Earnings Summary

View your month-wise commission earnings and payment status

Total Earned

${{ number_format($totalEarned, 2) }}

Pending Commission

${{ number_format($availableBalance, 2) }}

Paid Commission

${{ number_format($pendingWithdrawals, 2) }}

Commission Payment Processing

Your commissions are processed and managed by our admin team. Below you can see your monthly earnings breakdown.

  • Commissions are calculated and tracked monthly
  • Payments are processed by admin based on invoiced amounts
  • You'll receive email confirmation when payment is processed
  • View detailed breakdown of each month's earnings

Monthly Earnings Breakdown

Invoice-wise and month-wise commission details

@if(count($monthlyCommissions) > 0)
@foreach($monthlyCommissions as $monthKey => $monthData)

{{ $monthData['monthDisplay'] }}

${{ number_format($monthData['totalEarned'], 2) }}

{{ $monthData['paymentStatus'] == 'paid' ? '✓ Paid' : 'Pending' }}
Commission Count: {{ count($monthData['commissions']) }} {{ count($monthData['commissions']) == 1 ? 'invoice' : 'invoices' }}
@if($monthData['paymentStatus'] == 'paid' && $monthData['paidDate'])
Paid Date: {{ $monthData['paidDate']->format('M d, Y') }}
@endif @if($monthData['pendingAmount'] > 0)
Pending: ${{ number_format($monthData['pendingAmount'], 2) }}
@endif
@endforeach
@foreach($monthlyCommissions as $monthKey => $monthData) @endforeach
@else

No commission earnings yet

Start referring clients to earn commissions

Refer Your First Client
@endif
@endsection