@extends('admin.layouts.main') @section('content')

Withdrawal Details

@if(session('success')) @endif @if(session('error')) @endif
Withdrawal Information
@if($withdrawal->status === 'pending') Pending @elseif($withdrawal->status === 'approved') Approved @else Rejected @endif
Withdrawal ID: #{{ $withdrawal->id }}
User: {{ $withdrawal->user->name ?? 'N/A' }}
{{ $withdrawal->user->email ?? 'N/A' }}
Payment Method: {{ $withdrawal->paymentMethod->account_type ?? 'N/A' }}
Amount (USD): ${{ number_format($withdrawal->amount, 2) }} @if($conversionRate > 0 && $pkrAmount > 0)
Rs {{ number_format($pkrAmount, 2) }} (Rate: 1 USD = Rs {{ number_format($conversionRate, 2) }}) @endif
@if($withdrawal->bank_name) @endif @if($withdrawal->approved_at) @if($withdrawal->approver) @endif @endif
Account Holder: {{ $withdrawal->account_holder_name }}
Account Number: {{ $withdrawal->account_number }}
Bank Name: {{ $withdrawal->bank_name }}
Submitted: {{ $withdrawal->created_at->timezone('Asia/Karachi')->format('M d, Y') }}
{{ $withdrawal->created_at->timezone('Asia/Karachi')->format('h:i A') }}
Processed: {{ $withdrawal->approved_at->timezone('Asia/Karachi')->format('M d, Y') }}
{{ $withdrawal->approved_at->timezone('Asia/Karachi')->format('h:i A') }}
Processed By: {{ $withdrawal->approver->name ?? 'N/A' }}
@if($withdrawal->admin_notes)
Admin Notes:
{{ $withdrawal->admin_notes }}
@endif
@if($withdrawal->admin_proof_image)
Admin Proof Image
@endif
@if($withdrawal->status === 'pending')
Actions
@csrf
Upload proof of transfer (Max: 5MB)
@csrf
@else
Status
This withdrawal has been {{ $withdrawal->status }}. @if($withdrawal->approved_at)
Processed on {{ $withdrawal->approved_at->timezone('Asia/Karachi')->format('M d, Y h:i A') }} @endif
@endif
User Information
Name: {{ $withdrawal->user->name ?? 'N/A' }}
Email: {{ $withdrawal->user->email ?? 'N/A' }}
Username: {{ $withdrawal->user->username ?? 'N/A' }}
Phone: {{ $withdrawal->user->phone ?? 'N/A' }}
@endsection @push('styles') @endpush