@extends(Auth::user()->extender()) @section('title'){{__('Report')}} {{ __('Wallet Trx') }} @endsection @section('content') @include('includes.page_header',['title'=>__('Report')." ". __('Wallet Trx'),'url'=>route(Auth::user()->user_dashboard()),'icon' => $icon??'','permission'=>'PriorityRoute-view'])
@include('admin.others.infyomincludes.filter_index_js')
{{-- --}} {{-- --}} @foreach ($wallet_trxs as $key=>$trx) @php $amount_payable_basic_currency = $trx->amount_payable; $amount_payable_payer_currency = Auth::user()->fromBasicCurrency($amount_payable_basic_currency,$trx->payerWallet->country_currency); $amount_payable_payee_currency = Auth::user()->fromBasicCurrency($amount_payable_basic_currency,$trx->payeeWallet->country_currency); $trx_type = ''; $trx_history = ''; if($trx->payeeWallet->user_id==Auth::user()->id){ $trx_type = 'Debit'; }elseif($trx->payerWallet->user_id==Auth::user()->id){ $trx_type = 'Credit'; } if($trx_type == 'Credit'){ $trx_history = $trx->details; }elseif($trx_type == 'Debit'){ $trx_history = $trx->parameters; } @endphp {{-- --}} {{-- --}} @endforeach
# TypeWalletPayeePaid Amount Received Amount Category Status History Date Note
{{$key+1}} {{$trx_type}}{{$trx->payerWallet->name}}{{$trx->payeeWallet->name}}{{Auth::user()->myNumberFormat($amount_payable_payee_currency).' '.$trx->payee_currency}} {{Auth::user()->myNumberFormat($amount_payable_payer_currency).' '.$trx->payer_currency}} {{$trx->code}} {{$trx->parentStatus->name}} {{$trx_history}} {{$trx->created_at}} {{$trx->identity}}
@endsection