@extends('layouts.admin', ['heading' => 'Withdrawals', 'subheading' => 'Queue control, payout retry, and settlement summary']) @section('content')
Pending Queue
{{ number_format((int) $summary['pending_count']) }}
₹ {{ number_format((float) $summary['pending_amount'], 2) }}
Processing
{{ number_format((int) $summary['processing_count']) }}
₹ {{ number_format((float) $summary['processing_amount'], 2) }}
Today Settlement
₹ {{ number_format((float) $summary['today_paid'], 2) }}
Requested: ₹ {{ number_format((float) $summary['today_requested'], 2) }}
Retry / Failed
{{ number_format((int) $summary['retry_queue']) }}
{{ number_format((int) $summary['failed_count']) }} failed withdrawals

Settlement Overview

Locked Funds: ₹ {{ number_format((float) $summary['locked_funds'], 2) }}
TDS Collected: ₹ {{ number_format((float) $summary['tds_collected'], 2) }}
Charges Collected: ₹ {{ number_format((float) $summary['charges_collected'], 2) }}
Queue Health: {{ $summary['retry_queue'] > 0 ? 'Action Needed' : 'Healthy' }}
@csrf

TDS / Charge Calculator

TDS: ₹ 0.00
Charges: ₹ 0.00
Net Payout: ₹ 0.00
Reset Export Excel Export PDF
@csrf
@forelse($withdrawals as $withdrawal) @empty @endforelse
Request Member Amount Deductions Status Payout Actions
{{ $withdrawal->request_number }}
{{ optional($withdrawal->requested_at)->format('Y-m-d H:i') }}
{{ $withdrawal->user?->member_code ?? 'N/A' }}
{{ $withdrawal->user?->name ?? '' }}
Gross: ₹ {{ number_format((float) $withdrawal->amount, 2) }}
Net: ₹ {{ number_format((float) $withdrawal->net_amount, 2) }}
TDS: ₹ {{ number_format((float) $withdrawal->tds_amount, 2) }}
Charge: ₹ {{ number_format((float) $withdrawal->charge_amount, 2) }}
Locked: ₹ {{ number_format((float) $withdrawal->locked_amount, 2) }}
{{ strtoupper($withdrawal->status) }}
Status: {{ $withdrawal->latestPayout?->status ?? '-' }}
Attempts: {{ $withdrawal->latestPayout?->attempts ?? 0 }}
@if($withdrawal->latestPayout?->failure_reason)
{{ $withdrawal->latestPayout->failure_reason }}
@endif
@csrf
@csrf
@csrf
@csrf
No withdrawals found.
{{ $withdrawals->links() }}
@endsection