{{-- ====== PAYMENT SUCCESS CELEBRATION MODAL ====== --}} @if (session('payment_success')) @php $ps = session('payment_success'); @endphp
{{-- Confetti canvas (self-contained, 120 stars) --}} {{-- Modal card --}}
{{-- Star burst icon --}}

🎉 {{ __('Payment confirmed!') }}

{{ __('Your balance has been credited successfully.') }}

{{-- Amounts --}}
{{ __('Deposit credited') }} + {{ $ps['deposit'] }}
@if (!empty($ps['bonus']))
🎁 {{ __('Bonus') }} + {{ $ps['bonus'] }}
@endif
{{ __('New balance') }} {{ $ps['balance'] }}
@endif {{-- ====== / PAYMENT SUCCESS CELEBRATION MODAL ====== --}} {{-- ============ DEPOSIT FORM ============ --}} @if ($methods->isEmpty())

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

{{ __('Please contact support to add funds.') }}

@else {{-- ====== METHOD CHOOSER — branded gateway cards ====== --}}
@foreach ($methods as $m) @php /* * Each gateway gets a distinct branded card with its own logo and * colour palette. The 'driver' field (manual / stripe / paypal) drives * the visual identity; the admin-configurable 'name' is shown as a label. */ $active = $methodId === $m->id; $cards = [ 'stripe' => [ 'bg' => '#635BFF', 'label' => 'Stripe', 'svg' => '', ], 'paypal' => [ 'bg' => '#003087', 'label' => 'PayPal', 'svg' => '', ], // Bank transfer / manual: wallet icon in a professional navy/teal 'default' => [ 'bg' => '#1e3a5f', 'label' => __('Bank Transfer'), 'svg' => '', ], ]; $card = $cards[$m->driver] ?? $cards['default']; @endphp @endif {{-- Gateway logo (self-hosted SVG) --}} {!! $card['svg'] !!} {{-- Gateway name --}} {{ $m->name }} @endforeach
{{-- ====== / METHOD CHOOSER ====== --}} {{-- Amount --}}
@if ($selected)

{{ __('Min') }} {{ client_money($selected->min) }} · {{ __('Max') }} {{ client_money($selected->max) }}

@endif @if ($converts && \App\Support\Money::isPositive($amountBase))

{{ __(':paid will credit :credited to your wallet.', ['paid' => client_money($amountBase), 'credited' => money($amountBase, $baseCurrency)]) }}

@endif @error('amount')

{{ $message }}

@enderror @error('methodId')

{{ $message }}

@enderror
{{-- Bonus preview --}} @if (\App\Support\Money::isPositive($bonus))
{{ __('You will receive a :amount bonus on this deposit.', ['amount' => client_money($bonus)]) }}
@endif {{-- Binance Pay manual: unique-amount fingerprint flow --}} @if ($pendingTxnId && $selected?->driver === 'binance_manual') @php $bPayId = $instructions['binance_pay_id'] ?? ''; $bAmount = $instructions['amount'] ?? ''; $bBaseAmount = $instructions['base_amount'] ?? $bAmount; $bCcy = $instructions['currency'] ?? 'USDT'; @endphp
1 {{ __('Send the EXACT amount below to this Binance Pay ID') }}
@if ($binanceQrDataUri)
Binance Pay QR
@endif
⚠️ {{ __('Send EXACTLY this amount — do not round or change it') }}
{{ $bAmount }} {{ $bCcy }}
@if ($bBaseAmount !== $bAmount)
{{ __('Your deposit: :base :ccy. The extra :diff :ccy identifies your payment uniquely.', [ 'base' => $bBaseAmount, 'ccy' => $bCcy, 'diff' => money_number(abs((float)$bAmount - (float)$bBaseAmount)), ]) }}
@endif
{{ __('Binance app → Pay → Pay ID → enter :id → type :amt in the amount field', ['id' => $bPayId, 'amt' => $bAmount]) }}
2 {{ __('After paying, paste the Order ID shown by Binance') }}

{{ __('Binance shows "Pago exitoso" with an Order ID. Copy it and paste it here — your balance will be credited instantly.') }}

@error('binanceOrderId')

{{ $message }}

@enderror
{{-- Standard manual instructions + proof upload --}} @elseif ($pendingTxnId) @php $instrText = $instructions['instructions'] ?? ''; $account = $instructions['account'] ?? ''; $manualAmt = $instructions['amount'] ?? ''; $manualCcy = $instructions['currency'] ?? 'USD'; $imageUrl = $instructions['image_url'] ?? ''; // QR / wallet / bank image set by admin @endphp
{{-- Step 1: Where to send the money --}}
1 {{ $instructions['title'] ?? __('Payment instructions') }}
{{-- Admin-uploaded payment image (QR code, wallet number, bank account, etc.) --}} @if ($imageUrl)
{{ __('Payment details') }}
@endif {{-- Optional text instructions from the admin --}} @if ($instrText)

{{ $instrText }}

@endif {{-- Account number / destination if set --}} @if ($account)
{{ $account }}
@endif {{-- Exact amount the client must send --}} @if ($manualAmt)
{{ __('Amount to transfer') }}
{{ money($manualAmt, $manualCcy) }}
@endif
{{-- Step 2: Upload proof --}}
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
@endif @endif
{{-- ============ PAYMENT HISTORY ============ --}} {{-- Card header --}}

{{ __('Payment History') }}

{{ __('All your deposit transactions') }}

{{-- Legend --}}
@forelse ($history as $txn) @php $statusMap = [ 'completed' => ['tone' => 'success', 'icon' => 'check-circle', 'label' => __('Completed')], 'pending' => ['tone' => 'warning', 'icon' => 'clock', 'label' => __('Pending')], 'failed' => ['tone' => 'danger', 'icon' => 'x-circle', 'label' => __('Failed')], 'cancelled' => ['tone' => 'neutral', 'icon' => 'ban', 'label' => __('Cancelled')], ]; $s = $statusMap[$txn->status] ?? ['tone' => 'neutral', 'icon' => 'minus-circle', 'label' => ucfirst($txn->status)]; @endphp {{-- ID --}} {{-- Method --}} {{-- Date --}} {{-- Amount --}} {{-- Status --}} {{-- Invoice --}} @empty @endforelse
{{ __('ID') }} {{ __('Method') }} {{ __('Date') }} {{ __('Amount') }} {{ __('Status') }} {{ __('Invoice') }}
#{{ strtoupper(substr($txn->uid, 0, 8)) }}
{{ $txn->method?->name ?? ucfirst(str_replace('_', ' ', $txn->driver)) }}
{{ rf_date($txn->created_at) }}
{{ rf_date($txn->created_at, 'H:i') }}
{{ $txn->status === 'completed' ? '+' : '' }}{{ money($txn->amount, $txn->currency) }} @if(!empty($txn->meta['bonus_amount']) && (float)$txn->meta['bonus_amount'] > 0)
🎁 +{{ money($txn->meta['bonus_amount'], $txn->currency) }}
@endif
{{ $s['label'] }} @if ($txn->status === 'completed') @else — @endif

{{ __('No deposits yet') }}

{{ __('Your payment history will appear here.') }}

{{-- Pagination --}} @if ($history->hasPages())
{{ $history->links() }}
@endif