@if (session('status'))
{{ session('status') }}
@endif
Members
@php if(request()->role!=""){ $downline = \App\User::where(["owner_id" => Auth::user()->id])->get(); } else { $downline = \App\User::get(); } @endphp {{$downline->count()}}
@php
$dowlin= $downline->count()*100/\App\User::all()->count()
@endphp
Today's Payout
@php $totalRecharge=0.0; $date= date("Y-m-d"); if(request()->role!=""){ $recharge= \App\Payout::where(['user_id'=>Auth::user()->id])->where('created_at','LIKE',"%$date%")->where('ErrorDescription','=','Success')->get(); }else{ $recharge= \App\Payout::where('created_at','LIKE',"%$date%")->where('ErrorDescription','=','Success')->get(); } foreach ($recharge as $key => $value) { $totalRecharge+=$value->Amount; } @endphp {{$totalRecharge}}Wallet
{{request()->input("walletBalance")<0?0:request()->input("walletBalance")}} {!!(request()->input("walletBalance") <50)?' Low':""!!}Today APES
@php $date= date("Y-m-d"); $apes= \App\Apes::where("txnStatus",'LIKE',"%SUCCESS%")->where('updated_at','LIKE',"%$date%")->get(); $ape_amount = 0.0; foreach ( $apes as $key => $ape) { $ape_amount+=$ape->amount; } @endphp {{$ape_amount}}Wallet Stats
-
@php
$minus=0;
$plus=0;
$totalBalance=0.0;
@endphp
@foreach ($users as $key=> $user)
@php
$debit=0.00;
$credit=0.00;
@endphp
@foreach($user->wallet as $wallet)
@if ($wallet->type==0)
@php
$credit=$credit+$wallet->amount;
@endphp
@else
@php
$debit=$debit+$wallet->amount;
@endphp
@endif
@endforeach
- {{$user->loginId}} ({{$user->name}})@php $totalBalance+=$credit-$debit; if($credit-$debit<0){ $minus+=$credit-$debit; }else{$plus+=$credit-$debit;} @endphp {{round($credit-$debit)}}
@endforeach
Members Wallet
{{ round($totalBalance)}}Minus
{{ $minus}}Plus
{{ $plus}}Payout Requests
{{ round( $payout->count())}}Today AadharPay
{{ round( $aadharPay)}}