@php use \App\Enums\TransactionCalcType; use \App\Enums\TransactionType; use \App\Enums\TransactionStatus; $base_currency = $user->user_curr(); @endphp @foreach($trans as $tran) @php $status = get_transaction_status($tran); @endphp @if($status == TransactionStatus::COMPLETE || $status == TransactionStatus::APPROVED || $status == TransactionStatus::PROCESSED)