@extends('backend.layout.exposcale') @section('page_title', 'Wallet & Credits') @section('content')
G
Gradyn
USD Balance
${{ number_format($gradynBalance['usd_balance'], 2) }}
≥ ${{ number_format($gradynBalance['available_usd'], 2) }} recommended
EUR Balance
€{{ number_format($gradynBalance['eur_balance'], 2) }}
≥ €{{ number_format($gradynBalance['available_eur'], 2) }} recommended
R
Rockads
USD Balance
${{ $rockadsUsdWallet ? number_format($rockadsUsdWallet->balance, 2) : '0.00' }}
≥ ${{ $rockadsUsdWallet ? number_format($rockadsUsdWallet->available_balance, 2) : '0.00' }} recommended
EUR Balance
€{{ $rockadsEurWallet ? number_format($rockadsEurWallet->balance, 2) : '0.00' }}
≥ €{{ $rockadsEurWallet ? number_format($rockadsEurWallet->available_balance, 2) : '0.00' }} recommended
Transaction History
— transactions
Scope: All
All
Client Deposit
Platform Funding
Account Top-up
Client Withdrawal
Ad Account Withdrawal
Transfer
Affiliate Payout
Rockads
Currency: All
All
EUR
USD
Status: All
All
Completed
Processing
Source: All
All
Gradyn
Rockads
@forelse($transactions as $tx) @php $source = strtolower($tx->source); $isRockads = $source === 'rockads'; $cur = strtoupper($tx->currency_code); $curLow = strtolower($cur); $sym = $cur === 'USD' ? '$' : '€'; $isPos = $tx->direction === 'credit'; $dispAmt = ($isPos ? '+' : '−') . $sym . number_format((float) $tx->amount, 2); $amtCls = $isPos ? 'green' : 'red'; $statusRaw = strtolower($tx->status ?? ''); $isDone = in_array($statusRaw, ['completed', 'done', 'success', 'approved']); $statusCls = $isDone ? 'tx-done' : 'tx-proc'; $statusLbl = $isDone ? 'Completed' : ucfirst($tx->status ?: 'Processing'); $statusKey = $isDone ? 'completed' : 'processing'; $dateStr = $tx->provider_created_at ? $tx->provider_created_at->format('d.m H:i') : '—'; $walletName = $tx->providerWallet ? ($tx->providerWallet->name ?: $tx->providerWallet->code) : '—'; $adAcctName = $tx->adAccount ? ($tx->adAccount->name ?: $tx->adAccount->external_id) : null; $kind = $tx->kind ?: 'unknown'; if ($isRockads) { $nbCls = 'tx-nb-violet'; $nbLbl = '↔ ' . ucwords(str_replace('_', ' ', $kind)); if ($kind === 'withdraw4adaccount') { $nbLbl = '↑ Withdrawal'; $nbCls = 'tx-nb-red'; $scope = 'withdrawal'; } elseif ($kind === 'transfer2adaccount') { $nbLbl = '→ Transfer'; $nbCls = 'tx-nb-amber'; $scope = 'transfer'; } else { $scope = 'rockads'; } $detailHtml = 'Rockads · ' . $walletName . ''; if ($adAcctName) { $detailHtml = 'Wallet ↔ ' . $adAcctName . ''; } } else { $scope = 'gradyn'; if ($kind === 'topup') { $nbLbl = '↑ Account Top-up'; $nbCls = 'tx-nb-purple'; $scope = 'adtopup'; } elseif ($kind === 'withdrawal') { $nbLbl = '↓ Ad Account Withdrawal'; $nbCls = 'tx-nb-orange'; $scope = 'withdrawal'; } else { $nbLbl = '↔ ' . ucfirst($kind); $nbCls = 'tx-nb-violet'; } if ($adAcctName) { $detailHtml = 'Wallet → ' . $adAcctName . ''; } else { $detailHtml = $tx->destination ?? 'Wallet'; } } $shortRef = strlen((string)$tx->external_id) > 12 ? substr((string)$tx->external_id, 0, 8).'...' : $tx->external_id; @endphp @empty @endforelse
Ref / IDTypeWalletAmountDetailsDateStatus
{{ $shortRef }} {!! $nbLbl !!} {{ ucfirst($source) }} · {{ $cur }} {!! $dispAmt !!} {!! $detailHtml !!} {!! $dateStr !!} ● {{ $statusLbl }}
No transactions found.
@if($pagination['last_page'] > 1)
Showing {{ $pagination['from'] }} to {{ $pagination['to'] }} of {{ $pagination['total'] }} transactions
@if($pagination['current_page'] > 1) « Prev @else « Prev @endif @for($i = 1; $i <= $pagination['last_page']; $i++) @if($i == $pagination['current_page']) {{ $i }} @elseif($i == 1 || $i == $pagination['last_page'] || abs($i - $pagination['current_page']) <= 2) {{ $i }} @elseif($i == 2 || $i == $pagination['last_page'] - 1) ... @endif @endfor @if($pagination['current_page'] < $pagination['last_page']) Next » @else Next » @endif
@endif
@endsection @section('page_scripts') @endsection