@php
$tx = $wallet_transaction;
$va = $tx->quote?->source;
$fields = [
['unique_id', 'ri-hashtag', $tx->unique_id],
['amount', 'ri-bank-card-line', formatted_amount($tx->amount, $va?->currency)],
['fx_rate', 'ri-percent-line', $tx->quote?->fx_rate],
['total_amount', 'ri-calculator-line', formatted_amount($tx->total_amount, $va?->currency)],
['type' , 'ri-barcode-line', $tx->type == TRANSACTION_TYPE_CREDIT ? tr('credit') : tr('debit')],
['purpose' , 'ri-bookmark-line', $tx->purpose_of_payment],
['source_of_funds' , 'ri-wallet-3-line', $tx->source_of_funds],
['deposit_currency' , 'ri-money-dollar-circle-line', $tx->deposit_currency],
['transaction_hash', 'ri-hash-line', $tx->transaction_hash],
['from_wallet_address' , 'ri-arrow-left-right-line', $tx->from_wallet_address],
['to_wallet_address' , 'ri-arrow-left-right-line', $tx->to_wallet_address],
[
'status',
'ri-shield-check-line',
'
' .
wallet_transaction_status_formatted($tx->status) .
'',
],
['remarks', 'ri-edit-2-line', $tx->remarks],
[
'created_at',
'ri-time-line',
common_date(
$tx->created_at,
auth('admin')->user()->timezone ?? DEFAULT_TIMEZONE,
'd M Y h:i A',
),
],
[
'updated_at',
'ri-refresh-line',
common_date(
$tx->updated_at,
auth('admin')->user()->timezone ?? DEFAULT_TIMEZONE,
'd M Y h:i A',
),
],
];
@endphp
@foreach ($fields as [$label, $icon, $value])
@if (filled($value))
{{ tr($label) }}
{!! $value !!}
@endif
@endforeach