@extends('layouts.portal') @section('title', 'Agent Commission & Earnings') @section('page_title', 'Commission & Earnings') @section('page_subtitle', 'Track your earnings, withdrawals, and payment history') @section('sidebar') @include('agent.partials.sidebar', ['active' => 'commissions']) @endsection @section('content')
Total Earned
Awaiting Approval
Successfully Received
Available for Withdrawal
Level 1 Commission
${{ number_format($stats['level1_commission'], 2) }}
Direct Referrals
Level 2 Commission
${{ number_format($stats['level2_commission'], 2) }}
Indirect Referrals
Level 3 Commission
${{ number_format($stats['level3_commission'], 2) }}
Deep Network
@if($commissions instanceof \Illuminate\Pagination\Paginator){{ $commissions->total() }}@else{{ count($commissions) }}@endif total commissions
| Created Date | Client Name | Will Info | Level | Rate | Amount | Status | Payment Date |
|---|---|---|---|---|---|---|---|
| {{ $commission->created_at->format('M d, Y') }} |
{{ strtoupper(substr($commission->client->first_name ?? 'C', 0, 1)) }}
{{ $commission->client->full_name }}
{{ $commission->client->email }}
|
@if($commission->will)
{{ ucfirst(str_replace('_', ' ', $commission->will->will_type ?? 'Unknown')) }} Created: {{ $commission->will->created_at->format('M d, Y') }} |
Level {{ $commission->level }} | {{ $commission->percentage }}% |
${{ number_format($commission->amount, 2) }}
|
{{ ucfirst($commission->status) }} | @if($commission->paid_at) {{ $commission->paid_at->format('M d, Y') }} @else — @endif |