Fix at server 21/02/23
This commit is contained in:
@@ -981,11 +981,14 @@ class PembidaController extends Controller
|
||||
$jumlah_bidaan_cawangan = $caw->lelongBid->pluck('lelongBidderMenang')->sum('hargabida');
|
||||
$user_array = [];
|
||||
foreach ($users as $user) {
|
||||
//dd($user[0]);
|
||||
$user_to_be_added = [];
|
||||
$user_to_be_added['name_bidder'] = $user[0]->nama_bidder;
|
||||
$user_to_be_added['jumlah_bidaan'] = $user->sum('hargabida');
|
||||
$user_to_be_added['status_bayaran'] = $user[0]->status_payment;
|
||||
$user_to_be_added['jenis_bayaran'] = $user[0]->payment->status_payment_opt;
|
||||
if($user[0]->payment != null) {
|
||||
$user_to_be_added['jenis_bayaran'] = $user[0]->payment->status_payment_opt; }
|
||||
else {$user_to_be_added['jenis_bayaran'] = "99";}
|
||||
array_push($user_array, $user_to_be_added);
|
||||
}
|
||||
$cawangan_to_be_added = [];
|
||||
|
||||
Reference in New Issue
Block a user