@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