@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')
| TrxID | Status | Product | Phone | {{--Cost | --}} {{--Profit | --}}Admin | 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')) @endif --}} {{$trx->manualTransactionPasses->first()->details??''}} | @if ($trx->product){{$trx->product->title}}
Received: {{$trx->receiver_amount??0}} {{$trx->product->note??''}} {{$trx->product->operator->name}} {{$trx->product->country->country_name}} |
@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){{$trx->phone_number}} | @else{{$iccid}} (New eSim) | @endif @else{{$trx->phone_number}} | @endif {{--{{$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}} |