@php use \App\Enums\TransactionType as TType; use \App\Enums\TransactionCalcType as TCType; $base_currency = base_currency(); @endphp @section('title', __("Recent Transaction"))
{{ __('Recent Transaction') }}

{{ __('All the recent transaction made by user.') }}

{{ __('Details') }}
{{ __('Type') }}
{{ __('Order') }}
{{ __('Reference') }}
{{ __('Amount') }}
 
@forelse($user->transactions as $tnx)
{!! tnx_type_icon($tnx, 'tnx-type-icon') !!}
{{ $tnx->type_of_fund }} {{ show_date($tnx->created_at) }} {{ __(ucfirst($tnx->status)) }}
{{ ucfirst($tnx->type) }}
{{ data_get($tnx, 'tnx') }}
@if(!empty($tnx->reference)) {{ $tnx->reference }} @else - @endif
{{ $tnx->calc == TCType::CREDIT ? '+' : '-' }} {{ show_amount(data_get($tnx, 'tnx_amount'), data_get($tnx, 'tnx_currency')) }} {{ data_get($tnx, 'tnx_currency') }} {{ show_amount(data_get($tnx, 'amount'), $base_currency) }} {{ $base_currency }}
@empty
{{ __('No transactions history found!') }}
@endforelse
{{ __('Misc Transaction') }}

{{ __('All the recent misc transaction made by user.') }}

{{ __('Details') }}
{{ __('Type') }}
{{ __('Order') }}
{{ __('Reference') }}
{{ __('Amount') }}
 
@forelse($user->miscTnx as $tnx)
{!! tnx_type_icon($tnx, 'tnx-type-icon') !!}
{{ $tnx->type_of_fund }} {{ show_date($tnx->created_at) }} {{ __(ucfirst($tnx->status)) }}
{{ ucfirst($tnx->type) }}
{{ data_get($tnx, 'tnx') }}
@if(!empty($tnx->reference)) {{ $tnx->reference }} @else - @endif
{{ $tnx->calc == TCType::CREDIT ? '+' : '-' }} {{ show_amount(data_get($tnx, 'tnx_amount'), data_get($tnx, 'tnx_currency')) }} {{ data_get($tnx, 'tnx_currency') }} {{ show_amount(data_get($tnx, 'amount'), $base_currency) }} {{ $base_currency }}
@empty
{{ __('No transactions history found!') }}
@endforelse
@push('modal') @endpush @push('scripts') @endpush