{{-- ─── Deposit Form ────────────────────────────────────────────────────────── --}}
@csrf {{-- Amount --}} {{-- Method selector --}}
@if($methods->isEmpty())

No deposit methods available. Please contact support.

@else
@foreach($methods as $method) @endforeach
@endif @error('method_id')

{{ $message }}

@enderror
{{-- Method details (shown when selected) --}}

Payment Details

{{-- Transaction hash --}} {{-- Proof upload --}}
Submit Deposit Request
{{-- ─── Right: Summary + History ────────────────────────────────────────────── --}}
{{-- Balance --}}

Available Balance

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

{{-- Info --}}

Processing time

Deposits are reviewed and credited within 15–60 minutes during business hours.

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

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

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

+${{ number_format($dep->amount, 2) }}

{{ $dep->status?->value ?? $dep->status }}
@endforeach
@endif
@push('scripts') @endpush