{{-- Header --}}

Withdrawals Report

Generated on {{ now()->format('d M Y, h:i A') }}

{{-- Summary --}} @php $totalWithdrawals = $withdrawals->count(); $totalAmount = $withdrawals->sum('amount'); $pendingCount = $withdrawals->where('status', 'pending')->count(); $approvedCount = $withdrawals->where('status', 'approved')->count(); $paidCount = $withdrawals->where('status', 'paid')->count(); $rejectedCount = $withdrawals->where('status', 'rejected')->count(); @endphp
Total Withdrawals
{{ $totalWithdrawals }}
Total Amount
₹{{ number_format($totalAmount, 2) }}
Pending
{{ $pendingCount }}
Approved
{{ $approvedCount }}
Paid
Rejected
{{ $rejectedCount }}
{{-- Withdrawals Table --}} @forelse ($withdrawals as $index => $withdrawal) @php $details = $withdrawal->payment_details ?? []; @endphp {{-- # --}} {{-- User --}} {{-- Amount --}} {{-- Payment Method --}} {{-- Payment Details --}} {{-- Requested On --}} {{-- Status --}} @empty @endforelse
# User Amount Method Payment Details Requested On Status
{{ $index + 1 }}
{{ $withdrawal->user->name ?? 'Unknown' }}
₹{{ number_format($withdrawal->amount, 2) }} @if ($withdrawal->payment_method === 'UPI') UPI @elseif ($withdrawal->payment_method === 'Bank Transfer') Bank Transfer @else {{ $withdrawal->payment_method ?? 'N/A' }} @endif @if ($withdrawal->payment_method === 'UPI')
UPI ID: {{ $details['upi_id'] ?? 'N/A' }}
@if (!empty($details['upi_qr']))
QR Code: Available
@else
QR Code: Not available
@endif @elseif ($withdrawal->payment_method === 'Bank Transfer')
Holder: {{ $details['account_holder_name'] ?? 'N/A' }}
Account: {{ $details['account_number'] ?? 'N/A' }}
IFSC: {{ $details['ifsc'] ?? 'N/A' }}
Branch: {{ $details['branch'] ?? 'N/A' }}
@if (!empty($details['passbook_image']))
Passbook: Available
@else
Passbook: Not available
@endif @else No payment details available. @endif
{{ $withdrawal->created_at->format('d M Y') }}
{{ $withdrawal->created_at->format('h:i A') }}
@if ($withdrawal->status === 'pending') Pending @elseif ($withdrawal->status === 'approved') Approved @elseif ($withdrawal->status === 'paid') @elseif ($withdrawal->status === 'rejected') Rejected @else {{ ucfirst($withdrawal->status) }} @endif
No withdrawals requested yet.