Ken 1 ngày trước cách đây
mục cha
commit
df281fb9f8
1 tập tin đã thay đổi với 5 bổ sung5 xóa
  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();