@extends('layouts.admin-sidebar') @section('title', 'Pending Withdrawals') @section('page-title', 'Pending Withdrawals') @section('page-description', 'Review and process pending withdrawal requests') @section('content')
Back to Wallet Management

Pending Requests

{{ number_format($stats['pending_count']) }}

{{ number_format($stats['urgent_count']) }} urgent (>24h)

Pending Amount

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

Awaiting approval

Approved Today

{{ number_format($stats['approved_today']) }}

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

Declined Today

{{ number_format($stats['declined_today']) }}

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

@if($withdrawals->where('status', 'pending')->count() > 0)
@endif

Pending Withdrawals ({{ $withdrawals->total() }})

@if($withdrawals->count() > 0)
@foreach($withdrawals as $withdrawal) @endforeach
User Amount Bank Details Priority Requested Actions
{{ strtoupper(substr($withdrawal->user->first_name, 0, 1) . substr($withdrawal->user->last_name, 0, 1)) }}
{{ $withdrawal->user->full_name }}
{{ $withdrawal->user->email }}
ID: {{ $withdrawal->user->id }}
₦{{ number_format($withdrawal->amount, 2) }}
@if($withdrawal->fee > 0)
Fee: ₦{{ number_format($withdrawal->fee, 2) }}
@endif
{{ $withdrawal->reference }}
{{ $withdrawal->bank_name }}
{{ $withdrawal->account_number }}
{{ $withdrawal->account_name }}
@if($withdrawal->created_at->lt(now()->subHours(48))) Critical @elseif($withdrawal->created_at->lt(now()->subHours(24))) Urgent @else Normal @endif
{{ $withdrawal->created_at->format('M d, Y') }}
{{ $withdrawal->created_at->format('H:i:s') }}
{{ $withdrawal->created_at->diffForHumans() }}
{{ $withdrawals->links() }}
@else

No pending withdrawals

All withdrawal requests have been processed.

@endif
@endsection