@php use App\Models\EsimOrder; @endphp @extends(Auth::user()->extender()) @section('title'){{__('Report')}} {{ __('Sales and Transactions') }} @endsection @section('content') @include('includes.page_header',['title'=>__('Report')." ". __('Sales and Transactions'),'url'=>route(Auth::user()->user_dashboard()),'icon' => $icon??'','permission'=>'PriorityRoute-view']) {{-- Progress modal include --}} @include('includes.progress_modal')
{{-- --}}
@include('admin.others.infyomincludes.filter_index_js')
@foreach ($purchase_trxs as $key=>$trx) @if ($trx->product) @else @endif @php $iccid = ''; if(in_array($trx->api_provider,['esimgo'])){ if(in_array($trx->status,['success'])){ $locate_esim_order = EsimOrder::find($trx->end_point); if($locate_esim_order){ $esim_details = 'LPA:1$'.$locate_esim_order->esims_smdpAddress.'$'.$locate_esim_order->esims_matchingId; $iccid = $locate_esim_order->esims_iccid; } } } @endphp @if (in_array($trx->api_provider,['esimgo'])) @if (json_decode($trx->request)->phone) @else @endif @else @endif @endforeach
TrxID Status Product Phone Cost Comission Price Service Charge Paid Wallet Time
{{$trx->id}} Invoice Print {{ucwords($trx->status)}} @php $this_user_id = json_decode($trx->request)->user_id??2; @endphp @if (($trx->status!='success')&($trx->status!='initiated'))
@csrf
@endif
{{$trx->product->title}}
Received: {{json_decode($trx->parameters)->receiver_amount??0}} {{$trx->product->note??''}}
{{$trx->product->operator->name}}
{{$trx->product->country->country_name}}
-{{json_decode($trx->request)->phone}}{{$iccid}} (New eSim){{json_decode($trx->request)->phone}}{{json_decode($trx->parameters)->wallet_currency.' '.number_format(Auth::user()->toMyCurrency(json_decode($trx->parameters)->agent_price),2,'.',',')}} {{json_decode($trx->parameters)->wallet_currency.' '.number_format((Auth::user()->toMyCurrency(json_decode($trx->parameters)->selling_price)-Auth::user()->toMyCurrency(json_decode($trx->parameters)->agent_price)),2,'.',',')}} {{json_decode($trx->parameters)->wallet_currency.' '.number_format(Auth::user()->toMyCurrency(json_decode($trx->parameters)->selling_price),2,'.',',')}} {{json_decode($trx->parameters)->wallet_currency.' '.(json_decode($trx->parameters)->service_charge)}} {{$trx->wallet->name}}
Balance History: ({{Auth::user()->myNumberFormat(json_decode($trx->parameters)->wallet_initial_balance??0)}} to {{Auth::user()->myNumberFormat(json_decode($trx->parameters)->wallet_after_balance??0)}}) {{json_decode($trx->parameters)->wallet_currency??''}}
{{$trx->created_at}}
@endsection