@extends('layouts.portal') @section('title', 'Withdrawal Requests') @section('page_title', 'Withdrawal Requests') @section('page_subtitle', 'Manage Agent Commission Withdrawals') @section('sidebar') @include('admin.partials.sidebar', ['active' => 'withdrawals']) @endsection @push('styles') @endpush @section('content')
Pending Requests
RM{{ number_format($stats['total_pending'], 2) }}
{{ $stats['count_pending'] }} requests
Approved Total
RM{{ number_format($stats['total_approved'], 2) }}
{{ $stats['count_approved'] }} approved
Rejected Total
RM{{ number_format($stats['total_rejected'], 2) }}
{{ $stats['count_rejected'] }} rejected
Total Processed
RM{{ number_format($stats['total_approved'] + $stats['total_rejected'], 2) }}
{{ $stats['count_approved'] + $stats['count_rejected'] }} total
| ID | Agent | Amount | Payment Method | Status | Requested | Actions |
|---|---|---|---|---|---|---|
| {{ $withdrawal->id }} | {{ $withdrawal->user->name ?? 'N/A' }} | RM{{ number_format($withdrawal->amount, 2) }} | {{ ucfirst($withdrawal->payment_method) }} | {{ ucfirst($withdrawal->status) }} | {{ $withdrawal->created_at->format('M d, Y H:i') }} |
@if($withdrawal->status === 'pending')
Approved {{ $withdrawal->approved_at ? $withdrawal->approved_at->format('M d, Y') : '' }}
@else
Rejected {{ $withdrawal->rejected_at ? $withdrawal->rejected_at->format('M d, Y') : '' }}
@endif
|
|
No withdrawal requests found Agents will appear here when they request withdrawals. |
||||||
Agent submits withdrawal request from their commission balance.
Admin reviews the request and agent's commission balance.
Admin approves and processes the payment to agent.
Related commissions are marked as 'paid' in the system.