@php use \App\Enums\TransactionType; use \App\Enums\TransactionStatus; use \App\Enums\TransactionCalcType; $details = data_get($transaction, 'details'); $type = data_get($transaction, 'type'); $calc = data_get($transaction, 'calc'); $status = data_get($transaction, 'status'); $ledger = data_get($transaction,'ledger'); $isExchange = (data_get($details, 'base_currency') == data_get($details, 'tnx_currency')) ? false : true; @endphp