@extends('layouts.admin') @section('page-title', 'Promoter Payouts') @section('content')

Pending

{{ $stats['pending'] }}

Approved

{{ $stats['approved'] }}

Rejected

{{ $stats['rejected'] }}

Total Paid

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

Pending Amount

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

Promoter Withdrawal Requests

@forelse($withdrawals as $withdrawal) @empty @endforelse
ID Promoter Amount Method Status Date Actions
#{{ $withdrawal->id }}
{{ $withdrawal->user->name }}
{{ $withdrawal->user->email }}
${{ number_format($withdrawal->amount, 2) }} {{ ucfirst(str_replace('_', ' ', $withdrawal->payment_method)) }} @php $badgeClass = match($withdrawal->status) { 'pending' => 'badge-yellow', 'approved' => 'badge-green', 'rejected' => 'badge-red', default => 'badge-gray', }; @endphp {{ ucfirst($withdrawal->status) }} {{ $withdrawal->created_at->format('M d, Y') }} View
No withdrawal requests found
@if($withdrawals->hasPages())
{{ $withdrawals->links() }}
@endif
@endsection