@php use \App\Enums\TransactionType; use \App\Enums\TransactionStatus; $amount = $transaction->amount; $currency = $transaction->currency; $tnx_amount = $transaction->tnx_amount; $tnx_currency = $transaction->tnx_currency; $user_amount = money($transaction->tnx_amount, $transaction->tnx_currency); if($transaction->tnx_currency!=base_currency()) { $user_amount = money($transaction->tnx_amount, $transaction->tnx_currency) . ' ('. money($transaction->amount, $transaction->currency). ')'; } @endphp
{!! __("The amount of :amount to :type via :Method.", ['type' => ''.ucfirst($type).'', 'method' => $transaction->method_name, 'amount' => ''.$user_amount.'' ]) !!}