@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)
{!! tnx_type_icon($tran, 'odr-icon') !!}
@if($tran->type == TransactionType::CONTX) {{ ($tran->calc == TransactionCalcType::DEBIT) ? __("Send Funds") : __("Receive Funds") }} @else {{ __($tran->descr) }} @endif
{{ucfirst($tran->type)}}
{{ ($status == TransactionStatus::APPROVED || $status == TransactionStatus::PROCESSED) ? __date_parse($tran->date_made) : __date_parse($tran->created_at) }} {{ __($status) }}
@if($tran->calc == TransactionCalcType::CREDIT) + @elseif($tran->calc == TransactionCalcType::DEBIT) - @endif{{__format_number($tran->amount)}} {{$user->user_curr()}}
{{__format_number($tran->sys_amount)}} {{ system_settings('currency')}}
@endif @endforeach