@extends('admin.layouts.app') @section('title', 'Withdrawals') @section('content')
| # | User | Amount | Method | Payment Details | Requested On | Status | Action |
|---|---|---|---|---|---|---|---|
| {{ $withdrawals->firstItem() + $loop->index }} | {{-- User --}}
{{ $withdrawal->user->name ?? 'Unknown' }}
{{ $withdrawal->user->email ?? '' }} |
{{-- Amount --}}
₹{{ number_format($withdrawal->amount, 2) }} | {{-- Payment Method --}}@if ($withdrawal->payment_method === 'UPI') UPI @else Bank Transfer @endif | {{-- Payment Details --}}
@if ($withdrawal->payment_method === 'UPI')
{{-- UPI ID --}}
UPI ID
{{ $details['upi_id'] ?? 'N/A' }}
{{-- QR Code --}}
@elseif($withdrawal->payment_method === 'Bank Transfer')
{{-- Account Holder --}}
Holder:
{{ $details['account_holder_name'] ?? 'N/A' }}
{{-- Account Number --}}
Account:
{{ $details['account_number'] ?? 'N/A' }}
{{-- IFSC --}}
IFSC:
{{ $details['ifsc'] ?? 'N/A' }}
{{-- Branch --}}
Branch:
{{ $details['branch'] ?? 'N/A' }}
@else
No payment details available.
@endif
|
{{-- Requested On --}}
{{ $withdrawal->created_at->format('d M Y') }}
{{ $withdrawal->created_at->format('h:i A') }} |
{{-- Status --}}
@if ($withdrawal->status == 'pending') Pending @elseif ($withdrawal->status == 'approved') Approved @elseif ($withdrawal->status == 'paid') Paid @elseif ($withdrawal->status == 'rejected') Rejected @endif | {{-- Action --}}@if ($withdrawal->status == 'pending') {{-- Approve --}} {{-- Reject --}} @elseif ($withdrawal->status == 'approved' || 'paid') @elseif ($withdrawal->status == 'rejected') Rejected @endif |
| No withdrawals requested yet. | |||||||