Update AccountController.php

This commit is contained in:
Azfar Arsyad
2022-03-30 13:50:44 +08:00
parent 4c357b7e64
commit 21b0272347
+2 -2
View File
@@ -115,9 +115,9 @@ class AccountController extends Controller
'lelongbidder.payment_id as payment_id'
)
->groupBy('lelongbidder.payment_id')
->get();
->get();
// $payments = Payment::whereIn($saggroupbyid)->get()
$total_payment = Payment::whereIn($saggroupbyid)->get()->sum('total_payment');
$total_payment = Payment::whereIn('id',$saggroupbyid)->get()->sum('total_payment');
return view('account.sahsagonline', compact('senaraisag', 'lelong_id', 'user_id', 'total_payment'));