@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') !!}
@if($transaction->type == TType::TRANSFER) {{ ($transaction->calc == TCType::DEBIT) ? __("Send Funds") : __("Receive Funds") }} @else {{ $transaction->type_of_fund }} @endif {{ 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'))) }}
@if ($transaction->calc == TCType::CREDIT) + {{ amount_z(data_get($transaction, 'tnx_amount'), data_get($transaction, 'tnx_currency'), ['dp' => 'calc']) }} {{ data_get($transaction, 'tnx_currency') }} {{ amount_z(data_get($transaction, 'amount'), $base_currency, ['dp' => 'calc']) }} {{ $base_currency }} @else - {{ amount_z(data_get($transaction, 'tnx_total'), data_get($transaction, 'tnx_currency'), ['dp' => 'calc']) }} {{ data_get($transaction, 'tnx_currency') }} {{ amount_z(data_get($transaction, 'total'), $base_currency, ['dp' => 'calc']) }} {{ $base_currency }} @endif