Ken 22 ore în urmă
părinte
comite
df281fb9f8
1 a modificat fișierele cu 5 adăugiri și 5 ștergeri
  1. 5 5
      app/Http/Controllers/admin/Wallet.php

+ 5 - 5
app/Http/Controllers/admin/Wallet.php

@@ -59,15 +59,15 @@ class Wallet extends Controller
 
 
         if (MenuService::checkMenu(request()->user->id, "withdraw/topUp")) {
-
+            $data['recharge_task'] = Recharge::where('type', 2)
+                ->where('status', 0)->count();
         }
-        $data['recharge_task'] = Recharge::where('type', 2)
-            ->where('status', 0)->count();
 
-        if (MenuService::checkMenu(request()->user->id, "listUSDT")) {
 
+        if (MenuService::checkMenu(request()->user->id, "listUSDT")) {
+            $data['withdraw_task'] = Withdraw::where('status', 0)->count();
         }
-        $data['withdraw_task'] = Withdraw::where('status', 0)->count();
+
         if (MenuService::checkMenu(request()->user->id, "listRMB")) {
             $data['rmb_withdraw_task'] = PaymentOrder::where('type', 2)
                 ->where('status', 0)->count();