Ken 1 долоо хоног өмнө
parent
commit
dbd31a0ab2

+ 5 - 1
app/Http/Controllers/admin/Home.php

@@ -34,7 +34,11 @@ class Home extends Controller
             $query = Withdraw::query();
             $usdTotalAmount = (float)$query->whereBetween('created_at', [$start, $end])->sum('amount');
             $usdTotalSuccess = (float)$query->whereBetween('created_at', [$start, $end])->where('status',1)->sum('amount');
-            $usdTotalFail = (float)$query->whereBetween('created_at', [$start, $end])->where('status',2)->sum('amount');
+            $usdTotalFail = (float)$query->whereBetween('created_at', [$start, $end])->where('status',2)
+
+
+
+                ->sum('amount')->toSql();
 
             $result = [
                 'withdraw_usdt' => [