@php use \App\Enums\TransactionStatus as TStatus; use \App\Enums\TransactionType as TType; use \App\Enums\TransactionCalcType as TCType; $base_currency = base_currency(); @endphp
{!! tnx_type_icon($transaction, 'tnx-type-icon') !!}
{{ $transaction->type_of_fund }} {{ show_date($transaction->created_at) }} {{ ($transaction->type == TType::INVESTMENT && in_array($transaction->status, [TStatus::PENDING])) ? __("Locked") : __(ucfirst($transaction->status)) }}
{{ the_uid($transaction->customer->id) }} {{ __('via :Method', ['method' => $transaction->method_name]) }}
{{ data_get($transaction, 'tnx') }} {{ ucfirst(__(data_get($transaction, 'type'))) }}
{{ $transaction->calc == TCType::CREDIT ? '+' : '-' }} {{ show_amount(data_get($transaction, 'tnx_amount'), data_get($transaction, 'tnx_currency')) }} {{ data_get($transaction, 'tnx_currency') }} {{ show_amount(data_get($transaction, 'amount'), $base_currency) }} {{ $base_currency }}