{{-- Deposit form --}} @if ($methods->isEmpty())

{{ __('No payment methods available') }}

{{ __('The owner has not finished setting up any top-up method yet. A gateway only appears here once it is active and its credentials are in place.') }}

@else
@foreach ($methods as $m) @php // One icon per driver, with a fallback: the list is the // owner's, so it could bring a gateway not recognised by // name here and it still renders sensibly. $icon = [ 'manual' => 'building-2', 'stripe' => 'credit-card', 'paypal' => 'wallet', 'binance' => 'bitcoin', 'binance_manual' => 'bitcoin', 'razorpay' => 'credit-card', 'flutterwave' => 'credit-card', 'fake' => 'flask-conical', ][$m->driver] ?? 'circle-dollar-sign'; @endphp @endforeach
@error('methodId')

{{ $message }}

@enderror @error('amount')

{{ $message }}

@enderror @if ($selected && ($selected->min || $selected->max))

{{ __('Between :min and :max.', [ 'min' => money($selected->min, $currency), 'max' => money($selected->max, $currency), ]) }}

@endif @if ($selected && \App\Support\Money::isPositive($bonus))
{{ __('You will receive a :bonus bonus on this top-up.', ['bonus' => money($bonus, $currency)]) }}
@endif {{-- ── Transfer / offline payment ──────────────────────────────── The same card the end client sees: where to pay, exactly how much, and the receipt. This used to dump the instructions array as-is (the image URL came out as text), so the reseller saw a worse flow than their own clients for the same deposit. --}} @if ($pendingTxnId && $instructions) @php $instrText = $instructions['instructions'] ?? ''; $account = $instructions['account'] ?? ''; $manualAmt = $instructions['amount'] ?? ''; $manualCcy = $instructions['currency'] ?? $currency; $imageUrl = $instructions['image_url'] ?? ''; @endphp
{{-- Step 1: where the money goes --}}
1 {{ $instructions['title'] ?? __('Payment instructions') }}
@if ($imageUrl)
{{ __('Payment details') }}
@endif @if ($instrText)

{{ $instrText }}

@endif @if ($account)
{{ $account }}
@endif @if ($manualAmt)
{{ __('Amount to transfer') }}
{{ money($manualAmt, $manualCcy) }}
@endif
{{-- Step 2: the proof. Nothing is credited until the owner approves. --}}
2 {{ __('Upload your payment proof') }}

{{ __('Attach a screenshot or photo of your transfer receipt. Your balance is credited once the team approves it.') }}

@error('proof')

{{ $message }}

@enderror
@else
@endif @endif
{{-- History --}}

{{ __('Recent top-ups') }}

@forelse ($history as $tx) @php $tone = ['completed' => 'success', 'pending' => 'warning', 'failed' => 'danger', 'refunded' => 'refund'][$tx->status] ?? 'neutral'; @endphp @empty @endforelse
{{ money($tx->amount, $tx->currency) }}
{{ $tx->method?->name ?? ucfirst(str_replace('_', ' ', $tx->driver)) }} · {{ rf_date($tx->created_at) }}
{{ __(ucfirst($tx->status)) }}