Ken 1 săptămână în urmă
părinte
comite
bc2c365a8b
1 a modificat fișierele cu 2 adăugiri și 3 ștergeri
  1. 2 3
      app/Http/Controllers/admin/Withdraw.php

+ 2 - 3
app/Http/Controllers/admin/Withdraw.php

@@ -59,11 +59,10 @@ class Withdraw extends Controller
                 ->orderByDesc('created_at')
                 ->forpage($page, $limit)->get();
 
-           $amountTotal = $query->where($where)->sum('amount');
+            $totalAmount = $query->where($where)->sum('amount');
 
 
-
-            $result = ['amount_total'=>$amountTotal,'total' => $count, 'data' => $list];
+            $result = ['total_amount' => $totalAmount, 'total' => $count, 'data' => $list];
         } catch (ValidationException $e) {
             return $this->error(HttpStatus::CUSTOM_ERROR, $e->validator->errors()->first());
         } catch (Exception $e) {