@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('modules.reports.includes.purchase_summery_admin_card')
@include('admin.others.infyomincludes.filter_index_js')
@foreach ($purchase_trxs as $key=>$trx) @if ($trx->product) @else @endif @php $msg = 'New'; $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; } }else{ $msg = ''; } } @endphp @if (in_array($trx->api_provider,['esimgo'])) @if (json_decode($trx->request)->phone) @else @endif @else @endif @endforeach
TrxID Status Product Phone Cost Profit Admin Agent Merchant Service Charge Time Paid Wallet API
{{$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}} {{$msg}}{{json_decode($trx->request)->phone}}{{json_decode($trx->parameters)->product_currency.' '.number_format(json_decode($trx->parameters)->cost,2,'.',',')}} {{json_decode($trx->parameters)->product_currency.' '.number_format(((json_decode($trx->parameters)->admin_price??json_decode($trx->parameters)->price)-json_decode($trx->parameters)->cost),2,'.',',')}} {{json_decode($trx->parameters)->product_currency.' '.number_format(json_decode($trx->parameters)->admin_price??json_decode($trx->parameters)->price,2,'.',',')}} {{json_decode($trx->parameters)->product_currency.' '.number_format(json_decode($trx->parameters)->agent_price,2,'.',',')}}
Commission ({{json_decode($trx->parameters)->product_currency.' '.number_format((json_decode($trx->parameters)->agent_price-(json_decode($trx->parameters)->admin_price??json_decode($trx->parameters)->price)),2,'.',',')}})
{{json_decode($trx->parameters)->product_currency.' '.number_format(json_decode($trx->parameters)->selling_price,2,'.',',')}}
Commission ({{json_decode($trx->parameters)->product_currency.' '.number_format((json_decode($trx->parameters)->selling_price-json_decode($trx->parameters)->agent_price),2,'.',',')}})
{{json_decode($trx->parameters)->product_currency.' '.json_decode($trx->parameters)->service_charge}} {{$trx->created_at}} {{$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->api_provider}}
@endsection