update emel notifikasi
This commit is contained in:
@@ -1934,7 +1934,7 @@ class LelongController extends Controller
|
||||
|
||||
}
|
||||
//noti emel
|
||||
Mail::to($userdetails['email'])->send(new Pemenang($userdetails['name']));
|
||||
// Mail::to($userdetails['email'])->send(new Pemenang($userdetails['name']));
|
||||
// //noti sms
|
||||
// Nexmo::message()->send([
|
||||
// 'to' => $userdetails['notelbimbit'],
|
||||
@@ -1958,6 +1958,16 @@ class LelongController extends Controller
|
||||
|
||||
}
|
||||
}
|
||||
//hantar notifikasi kpd pembida
|
||||
$notifikasi = LelongBid::where('lelong_id', '=', $lelong_id)->where('status_jual', '=', 1)
|
||||
->where('caw_id', '=', $cawid)
|
||||
->groupBy('nopembeli')->get();
|
||||
// dd($notifikasi);
|
||||
foreach ($notifikasi as $key => $noti) {
|
||||
$userdetailsnoti = User::where('id', $noti['nopembeli'])->first();
|
||||
// dd($userdetailsnoti);
|
||||
Mail::to($userdetailsnoti['email'])->send(new Pemenang($userdetailsnoti['name']));
|
||||
}
|
||||
$lelong->sts_lelong = 3; //siap jana pemenang
|
||||
$lelong->save();
|
||||
|
||||
@@ -2164,7 +2174,7 @@ class LelongController extends Controller
|
||||
//sending notify emel kepada pembida
|
||||
}
|
||||
//send email
|
||||
Mail::to($userdetails['email'])->send(new Pemenang($userdetails['name']));
|
||||
// Mail::to($userdetails['email'])->send(new Pemenang($userdetails['name']));
|
||||
// //send sms
|
||||
// Nexmo::message()->send([
|
||||
// 'to' => $userdetails['notelbimbit'],
|
||||
@@ -2184,6 +2194,16 @@ class LelongController extends Controller
|
||||
|
||||
}
|
||||
}
|
||||
//hantar notifikasi kpd pembida
|
||||
$notifikasi = LelongBid::where('lelong_id', '=', $lelong_id)->where('status_jual', '=', 1)
|
||||
->groupBy('nopembeli')->get();
|
||||
// dd($notifikasi);
|
||||
foreach ($notifikasi as $key => $noti) {
|
||||
$userdetailsnoti = User::where('id', $noti['nopembeli'])->first();
|
||||
// dd($userdetailsnoti);
|
||||
Mail::to($userdetailsnoti['email'])->send(new Pemenang($userdetailsnoti['name']));
|
||||
}
|
||||
|
||||
$lelong->sts_lelong = 3; //siap jana pemenang
|
||||
$lelong->save();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user