@extends('layouts.user') @section('title') Payment Information @endsection @section('content') @php $depositType = $deposit->type ?? 'legacy'; $isCryptoAuto = $depositType === 'crypto_auto'; $isCryptoManual = $depositType === 'crypto_manual'; $isLegacy = !$isCryptoAuto && !$isCryptoManual; $txHash = $deposit->payment_id ?? null; $network = strtoupper($deposit->network ?? ''); $status = $deposit->status; // null=pending, 1=completed, 2=failed // Explorer URL for on-chain deposits $explorerUrl = null; if (($isCryptoAuto || $isCryptoManual) && $txHash) { $explorerUrl = $network === 'SOL' ? 'https://solscan.io/tx/' . $txHash : 'https://etherscan.io/tx/' . $txHash; } // NowPayments status helpers (legacy only) $npStatus = $isLegacy ? ($pay_info['payment']['payment_status'] ?? 'waiting') : null; $npDone = in_array($npStatus, ['finished', 'partially_paid']); $npWaiting = $npStatus === 'waiting'; $npDead = in_array($npStatus, ['expired', 'failed']); @endphp
{{-- Sidebar --}}
{{-- Main --}}
{{-- ══════════════════════════════════════════════════ BRANCH A — AUTO ON-CHAIN (crypto_auto) ══════════════════════════════════════════════════ --}} @if($isCryptoAuto)
On-chain Deposit Auto
@if($status == 1) Completed @elseif($status == 2) ✕ Failed @else Pending confirmation @endif
Deposit amount
${{ number_format($deposit->amount, 2) }}
USDT · {{ $network }}
@if($status == 1)
Your deposit has been confirmed on-chain and credited to your account. Your balance has been updated.
@elseif($status == 2)
This deposit could not be verified on-chain. If you believe this is an error, please contact support with your transaction hash below.
@else
Your transaction has been submitted and is waiting for on-chain confirmation. This usually takes under 10 mins. Your balance will update automatically — no action needed.
@endif
Network {{ $network === 'SOL' ? 'Solana (SPL)' : 'Ethereum (ERC20)' }}
Date {{ $deposit->created_at->format('d M Y, H:i') }} UTC
Method Wallet connect (auto)
@if($txHash)

Transaction Hash

@endif
@if($status == 1) Make Another Deposit @elseif($status != 2) @else Try Another Deposit @endif
{{-- ══════════════════════════════════════════════════ BRANCH B — MANUAL ON-CHAIN (crypto_manual) ══════════════════════════════════════════════════ --}} @elseif($isCryptoManual)
Manual Deposit Manual
@if($status == 1) Completed @elseif($status == 2) ✕ Failed @else Pending confirmation @endif
{{-- Amount tile --}}
Deposit amount
${{ number_format($deposit->amount, 2) }}
USDT · {{ $network }}
{{-- Status notice --}} @if($status == 1)
Your transaction has been verified on-chain and your balance has been credited. Thank you!
@elseif($status == 2)
We could not verify this transaction on-chain. This may be because the tx signature was incorrect, the wrong network was used, or the funds were not sent to our address. Please contact support if you believe this is an error.
@else
Your deposit has been submitted and is pending on-chain verification. This is usually automatic and takes a few minutes. If it remains pending for more than 30 minutes, please contact support with your transaction hash below.
@endif {{-- Progress timeline --}}

Verification progress

{{-- Step 1: Submitted --}}
Deposit submitted
Received {{ $deposit->created_at->format('d M Y, H:i') }} UTC
{{-- Step 2: On-chain check --}}
@if($status == 1) ✓ @elseif($status == 2) ✕ @else @endif
On-chain verification
@if($status == 1)
Verified successfully
@elseif($status == 2)
Verification failed
@else
Checking transaction on Solana…
@endif
{{-- Step 3: Balance credited --}}
@if($status == 1) ✓ @else 3 @endif
Balance credited
@if($status == 1)
${{ number_format($deposit->amount, 2) }} USDT added to your account
@else
Happens automatically after verification
@endif
{{-- Detail rows --}}
Network {{ $network === 'SOL' ? 'Solana (SPL)' : 'Ethereum (ERC20)' }}
Method Manual (self-submitted)
Submitted {{ $deposit->created_at->format('d M Y, H:i') }} UTC
@if($deposit->sol_deposit_wallet || $deposit->eth_deposit_wallet)
From wallet {{ $network === 'SOL' ? ($deposit->user->sol_deposit_wallet ?? '—') : ($deposit->user->eth_deposit_wallet ?? '—') }}
@endif
{{-- TX hash --}} @if($txHash)

Transaction Signature

{{ $txHash }}
✓ Signature copied to clipboard
@endif {{-- Actions --}}
@if($status == 1) Make Another Deposit @elseif($status == 2) Try Another Deposit @else @endif
{{-- ══════════════════════════════════════════════════ BRANCH C — LEGACY NOWPAYMENTS ══════════════════════════════════════════════════ --}} @else
Deposit Information
@if($npDone) Payment completed @elseif($npWaiting) Awaiting payment @elseif($npDead) ✕ {{ ucfirst($npStatus) }} @else {{ ucfirst($npStatus ?? 'Unknown') }} @endif
Amount to pay
{{ number_format($pay_info['deposit']['amount'], 2) }}
{{ strtoupper($pay_info['payment']['pay_currency']) }} · {{ $pay_info['deposit']['network'] }}
@if($npDone)
Your payment has been completed and verified. This deposit address has expired. Click here to make another deposit.
@elseif($npWaiting)
Do not leave this page until your deposit is complete. Send the exact amount to the address below, then click "I have made the transfer". Address expires in 20 minutes.
@elseif($npStatus === 'expired')
This payment address has expired and is no longer valid. Click here to create a new deposit.
@elseif($npStatus === 'failed')
This payment failed. The address is no longer valid. Click here to create a new deposit.
@else
Do not leave this page until deposit is complete. Click the button below when done — this is very important.
@endif
Payment ID {{ $pay_info['payment']['payment_id'] }}
Network {{ $pay_info['deposit']['network'] }}
Date {{ $deposit->created_at->format('d M Y, H:i') }} UTC
@if($npWaiting)

Send to this address

{{ $pay_info['payment']['pay_address'] }}
✓ Address copied to clipboard
@elseif(!$npWaiting && !$npDone)
Address has become invalid — do not use.
@endif @if(isset($pay_info['deposit']['qr_code']) && $pay_info['deposit']['qr_code'])

{{ $npWaiting ? 'Scan QR Code to pay' : 'QR Code (expired)' }}

QR Code
@endif
@if($npWaiting) @endif @if(!$npWaiting || $npDone || $npDead) Make Another Deposit @endif
@endif {{-- end branch --}}
{{-- /info-card --}}
@endsection