@php
$tx = $deposit_transaction;
$va = $tx->virtualAccount;
$fields = [
['unique_id', 'ri-hashtag', $tx->unique_id],
['account_number', 'ri-bank-line', $va?->account_number],
['currency', 'ri-money-dollar-circle-line', $va?->currency],
['amount', 'ri-bank-card-line', formatted_amount($tx->amount, $va?->currency)],
['fees', 'ri-percent-line', formatted_amount($tx->commission_amount)],
['total_amount', 'ri-calculator-line', formatted_amount($tx->total_amount, $va?->currency)],
['type' , 'ri-barcode-line', ucfirst($tx->type)],
['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',
'
' .
deposit_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