@extends('frontend.layouts.app') @section('content')
@include('frontend.dashboard.sidebar')

Withdrawal History

View your withdrawal requests and admin updates.

Total Withdrawals: {{ $withdrawals->total() }}

@if (session('success')) @endif @if (session('error')) @endif

My Withdrawals

Track your withdrawal requests and admin remarks.

Wallet
@forelse ($withdrawals as $withdrawal) @php $details = $withdrawal->payment_details ?? []; $status = strtolower($withdrawal->status); @endphp @empty @endforelse
# Withdrawal ID Amount Payment Method Payment Details Status Requested On Admin Remarks
{{ $withdrawals->firstItem() + $loop->index }} WDR{{ str_pad($withdrawal->id, 6, '0', STR_PAD_LEFT) }} ₹{{ number_format($withdrawal->amount, 2) }} @if ($withdrawal->payment_method === 'UPI') UPI @elseif ($withdrawal->payment_method === 'Bank Transfer') Bank Transfer @else {{ $withdrawal->payment_method }} @endif @if ($withdrawal->payment_method === 'UPI')
UPI: {{ $details['upi_id'] ?? 'N/A' }}
@if (!empty($details['upi_qr'])) View QR @endif @elseif ($withdrawal->payment_method === 'Bank Transfer')
Holder: {{ $details['account_holder_name'] ?? 'N/A' }}
A/C: {{ $details['account_number'] ?? 'N/A' }}
IFSC: {{ $details['ifsc'] ?? 'N/A' }}
Branch: {{ $details['branch'] ?? 'N/A' }}
@if (!empty($details['passbook_image'])) View Passbook @endif
@else No payment details available. @endif
@if ($status === 'pending') Pending @elseif ($status === 'approved') Approved @elseif ($status === 'paid') Paid @elseif ($status === 'rejected') Rejected @else {{ ucfirst($withdrawal->status) }} @endif
{{ $withdrawal->created_at->format('d M Y') }}
{{ $withdrawal->created_at->format('h:i A') }}
@forelse ($withdrawal->actions as $action)
Admin {{ $action->created_at->format('d M Y') }}
{{ $action->created_at->format('h:i A') }}
@if ($action->message)
{{ $action->message }}
@endif @if ($action->document) View Document @endif
@empty No admin remarks yet. @endforelse
No Withdrawals Found

You haven't made any withdrawal requests yet.

@if ($withdrawals->hasPages())
{{ $withdrawals->links() }}
@endif
Dashboard Menu
@include('frontend.dashboard.sidebar')
@endsection