update
This commit is contained in:
@@ -48,7 +48,7 @@ class AccountController extends Controller
|
||||
->groupBy('lelongbidder.user_id')
|
||||
->get();
|
||||
|
||||
|
||||
// dd($listwinner);
|
||||
foreach($listwinner as $index1=>$winner){
|
||||
|
||||
$userdetails = User::where('id', $winner['user_id'])->first();
|
||||
@@ -74,7 +74,7 @@ class AccountController extends Controller
|
||||
->select('lelongbidder.payment_id')
|
||||
->groupBy('lelongbidder.payment_id')
|
||||
->get();
|
||||
|
||||
// dd($id_payment);
|
||||
$total_payment = 0;
|
||||
foreach($id_payment as $id){
|
||||
$payment = Payment::where('id', $id->payment_id)
|
||||
@@ -160,6 +160,7 @@ class AccountController extends Controller
|
||||
$updatelelbidbidder->save();
|
||||
|
||||
$eachbid = LelongBid::where('id',$sag->lelongbid_id)->first();
|
||||
$eachbid->status_payment = 1;
|
||||
$eachbid->status_jual = 1;
|
||||
$eachbid->t_jual = $currentdate;
|
||||
$eachbid->save();
|
||||
|
||||
Reference in New Issue
Block a user