{{-- ─── Withdrawal Form ─────────────────────────────────────────────────────── --}}
@if($user->wallets->isEmpty())

No withdrawal wallets

Add a withdrawal address in your settings to enable withdrawals.

Add Address
@else
@csrf {{-- Wallet selector --}}
@foreach($user->wallets as $wallet) @endforeach
@error('method_id')

{{ $message }}

@enderror
{{-- Balance info --}}
Available balance ${{ number_format($user->bal ?? 0, 2) }}
Request Withdrawal @endif
{{-- ─── Right column ────────────────────────────────────────────────────────── --}}
{{-- Balance --}}

Available Balance

${{ number_format($user->bal ?? 0, 2) }}

{{-- Warning --}}

Processing time

Withdrawals are processed within 1–3 business days. KYC verification may be required.

{{-- History --}} @if($withdrawals->isEmpty())
No withdrawals yet.
@else
@foreach($withdrawals as $wd) @php $sc = ['approved'=>'emerald','pending'=>'amber','rejected'=>'red','completed'=>'blue']; @endphp

{{ $wd->method->name ?? 'N/A' }}

{{ $wd->created_at->format('M d, Y') }}

-${{ number_format($wd->amount, 2) }}

{{ $wd->status?->value ?? $wd->status }}
@endforeach
@endif