@extends('layouts.portal') @section('title', 'Pending Commission Payments') @section('page_title', 'Pending Commission Payments') @section('page_subtitle', 'Process Agent Commissions & Payments') @section('sidebar') @include('admin.partials.sidebar', ['active' => 'commission-reports']) @endsection @push('styles') @endpush @section('content')
Paid Commissions
RM{{ number_format($totalPaid, 2) }}
{{ $countPaid }} transactions
Pending Commissions
RM{{ number_format($totalPending, 2) }}
{{ $countPending }} transactions
Cancelled
RM{{ number_format($totalCancelled, 2) }}
{{ $countCancelled }} transactions
| Rank | Agent | Total Earned | Transactions |
|---|---|---|---|
| @if($index < 3) @else {{ $index + 1 }} @endif | {{ $agent->name }} | RM{{ number_format($agent->total_earned ?? 0, 2) }} | {{ $agent->commissions_count ?? 0 }} |
| No data available | |||
| Date | Agent | Level | Amount | Status |
|---|---|---|---|---|
| {{ $commission->created_at->format('M d, Y') }} | {{ $commission->user->name ?? 'N/A' }} | L{{ $commission->level }} | RM{{ number_format($commission->amount, 2) }} | {{ ucfirst($commission->status) }} |
| No recent commissions found | ||||
| ID | Will ID | Client Name | Agent | Level | Amount | Status | Date | Action | |
|---|---|---|---|---|---|---|---|---|---|
| @if($commission->status === 'pending') @endif | #{{ $commission->id }} | @if($commission->will_id) #{{ $commission->will_id }} @else N/A @endif |
@if($commission->client)
{{ $commission->client->first_name ?? '' }} {{ $commission->client->last_name ?? '' }} {{ $commission->client->email ?? '' }} |
{{ $commission->user->name ?? 'N/A' }} | L{{ $commission->level }} | RM{{ number_format($commission->amount, 2) }} | {{ ucfirst($commission->status) }} | {{ $commission->created_at->format('M d, Y') }} | @if($commission->status === 'pending') @endif |
No commissions found