@php use App\Models\EsimOrder; @endphp @extends(Auth::user()->extender()) @section('title'){{__('Report')}} {{ __('Sales Report') }} @endsection @section('content') @include('includes.page_header',['title'=>__('Report')." ". __('Sales Report'),'url'=>route(Auth::user()->user_dashboard()),'icon' => $icon??'','permission'=>'PriorityRoute-view']) {{-- Progress modal include --}} @include('includes.progress_modal')
@include('modules.reports.includes.optimized_purchase_summery_admin_card2')
@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->purchase_transaction->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 ($trx->phone_number) @else @endif @else @endif {{-- --}} {{-- --}} {{-- --}} @endforeach
TrxID Status Product PhoneCostProfitAdmin Agent Merchant Service Charge Time Paid Wallet API
{{$trx->purchase_id}} Invoice Print {{ucwords($trx->status)}} @php $this_user_id = $trx->user_id??2; @endphp {{-- @if (($trx->status!='success')&($trx->status!='initiated'))
@csrf
@endif --}} {{$trx->manualTransactionPasses->first()->details??''}}
{{$trx->product->title}}
Received: {{$trx->receiver_amount??0}} {{$trx->product->note??''}}
{{$trx->product->operator->name}}
{{$trx->product->country->country_name}}
-{{$trx->phone_number}}{{$iccid}} (New eSim){{$trx->phone_number}}{{$trx->product_currency.' '.number_format($trx->cost,2,'.',',')}}{{$trx->product_currency.' '.number_format((($trx->admin_price??$trx->price)-$trx->cost),2,'.',',')}} {{$trx->product_currency.' '.number_format($trx->admin_price??$trx->price,2,'.',',')}} {{$trx->product_currency.' '.number_format($trx->agent_price,2,'.',',')}}
Commission ({{$trx->product_currency.' '.number_format(($trx->agent_price-($trx->admin_price??$trx->price)),2,'.',',')}})
{{$trx->product_currency.' '.number_format(($trx->selling_price-$trx->agent_price),2,'.',',')}} {{$trx->product_currency.' '.number_format($trx->selling_price,2,'.',',')}}
Commission ({{$trx->product_currency.' '.number_format(($trx->selling_price-$trx->agent_price),2,'.',',')}})
{{$trx->product_currency.' '.$trx->service_charge}} {{$trx->created_at}} {{$trx->wallet->name}}
Balance History: ({{Auth::user()->myNumberFormat($trx->wallet_initial_balance??0)}} to {{Auth::user()->myNumberFormat($trx->wallet_after_balance??0)}}) {{$trx->wallet_currency??''}}
{{$trx->api_provider}}
@endsection