@php $stats = $this->getViewData()['stats']; $topEarners = $this->getViewData()['top_earners']; $golfers = $this->getViewData()['golfers']; @endphp {{-- Statistics Cards --}}
{{-- Pending Payouts --}}

Pending Payouts

${{ number_format($stats['pending_total'], 2) }}

{{ $stats['pending_count'] }} requests

{{-- Processing Payouts --}}

Processing

${{ number_format($stats['processing_total'], 2) }}

{{ $stats['processing_count'] }} in progress

{{-- Completed This Month --}}

Completed (This Month)

${{ number_format($stats['completed_this_month'], 2) }}

Paid out

{{-- Total Platform Fees --}}

Platform Fees Collected

${{ number_format($stats['total_platform_fees'], 2) }}

All time

{{-- Report Type Selector --}}

Report Type

{{-- Golfer Filter --}} @if(count($golfers) > 0)
@endif
{{-- Top Earners --}} @if(count($topEarners) > 0)

Top Earning Golfers

@foreach($topEarners as $index => $earner) @endforeach
Rank Golfer Total Earned Withdrawals Avg per Withdrawal
{{ $index + 1 }} {{ $earner->golfer->name ?? 'N/A' }} ${{ number_format($earner->total_earnings, 2) }} {{ $earner->withdrawal_count }} ${{ number_format($earner->total_earnings / $earner->withdrawal_count, 2) }}
@endif {{-- Payout History Table --}}

@if($reportType === 'completed') Completed Payouts History @elseif($reportType === 'pending') Pending Payouts @else Processing Payouts @endif

Export data using the buttons in the top right corner

{{ $this->table }}