@php use \App\Enums\TransactionCalcType; use \App\Enums\TransactionStatus; use \App\Enums\TransactionType; $base_currency = base_currency(); @endphp
{!! tnx_type_icon($transaction, 'odr-icon') !!}
@if($transaction->type == TransactionType::TRANSFER) {{ ($transaction->calc == TransactionCalcType::DEBIT) ? __("Send Funds") : __("Receive Funds") }} @else {{ __(trans_replace($transaction->description)) }} @endif
{{ ($transaction->status == TransactionStatus::COMPLETED) ? show_date($transaction->completed_at) : show_date($transaction->created_at) }} {{ __(data_get($transaction->details, 'status')) }}
{{ ($transaction->calc == TransactionCalcType::CREDIT) ? '+' : '-' }} {{ ($transaction->calc == TransactionCalcType::CREDIT) ? amount_z($transaction->amount, $base_currency, ['dp' => 'calc']): amount_z($transaction->total, $base_currency, ['dp' => 'calc']) }} {{ $base_currency }}
{{ ($transaction->calc == TransactionCalcType::CREDIT) ? amount_z($transaction->tnx_amount, $transaction->tnx_currency, ['dp' => 'calc']) : amount_z($transaction->tnx_total, $transaction->tnx_currency, ['dp' => 'calc']) }} {{ $transaction->tnx_currency }}