@extends('layouts.admin') @section('breadcrumb') @endsection @section('content')
{{-- SUMMARY --}}
{{ tr('transaction_id') }}
{{ $wallet_transaction->transaction_id }}
{{ tr('amount') }}
{{ formatted_amount($wallet_transaction->quote?->total_sending_amount, $wallet_transaction->quote?->source?->currency) }}
{{ tr('fx_rate') }}
{{ $wallet_transaction->quote?->fx_rate }}
{{ tr('receiving_amount') }}
{{ formatted_amount($wallet_transaction->total_amount, $wallet_transaction->wallet?->currency) }}
{{ tr('status') }}
{{ wallet_transaction_status_formatted($wallet_transaction->status) }}
{{-- TRANSACTION DETAILS --}}
{{ tr('transaction_details') }}
@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
{{-- USER DETAILS --}}

{{ tr('user_details') }}

@php $user = $wallet_transaction->user; $fields = [ [ 'name', 'ri-user-line', $user ? '' . optional($user)->name . '' : tr('na'), ], ['email', 'ri-mail-line', $user?->email], ['user_id', 'ri-hashtag', $user?->unique_id], ]; @endphp @foreach ($fields as [$label, $icon, $value]) @if (filled($value))
{{ tr($label) }}
{!! $value !!}
@endif @endforeach
@endsection