@foreach(['pending_approval' => 'Awaiting', 'approved' => 'Approved', 'processing' => 'In flight', 'paid' => 'Paid', 'declined' => 'Declined', 'failed' => 'Failed', 'all' => 'All'] as $key => $label)
{{ $label }}
@endforeach
@else
@foreach($rows as $r)
@php
$detail = $r->name_match_detail ? json_decode($r->name_match_detail, true) : null;
$geasName = trim($r->first_name . ' ' . $r->last_name);
@endphp
${{ number_format($r->amount_usd, 2) }}
#{{ $r->id }} · {{ $r->currency_code }}
User
{{ $r->username }}
{{ $r->email }}
balance now ${{ number_format($r->balance, 2) }}
Destination
{{ $r->bank_name }}
{{ $r->account_number }}
Status
@if($r->status === 'paid')
Paid
@elseif(in_array($r->status, ['declined','failed','cancelled']))
{{ ucfirst($r->status) }}
@else
{{ str_replace('_', ' ', $r->status) }}
@endif
{{ $r->created_at ? \Carbon\Carbon::parse($r->created_at)->format('d M Y H:i') : '' }}
@if($r->decline_reason)
{{ $r->decline_reason }}
@endif
{{-- Both names, always. A verdict is a summary; the
reviewer needs the two strings to judge. --}}
Name on GE-AS
{{ strtoupper($geasName) }}
Name at the bank
{{ $r->name_match }}
{{ strtoupper($r->account_name) }}
@if($detail && !empty($detail['reason']))
{{ $detail['reason'] }}
@endif
@if($r->status === 'approved')
Send this amount
{{ number_format($r->amount_usd, 2) }} USDT
To this wallet (SPL, Solana)
@if($wallet !== '')
{{ $wallet }}
@else
REMVO_PAYOUT_WALLET is not set. Do not send anything.
@endif
@endif
@if($r->status === 'pending_approval')
@elseif($r->status === 'approved')
@elseif($r->status === 'processing')
{{ $r->tx_hash }}
@else
@if($r->tx_hash)
{{ $r->tx_hash }}
@else
No further action.
@endif
@endif