Exclude users that enable to receive notification by email
This commit is contained in:
@@ -55,8 +55,16 @@ class TetapanController extends Controller
|
||||
$settings = array_combine($key, $values);
|
||||
|
||||
$days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
|
||||
|
||||
$except_users_email = [
|
||||
'azmeer@pkb.net.my',
|
||||
'amran@pkb.net.my',
|
||||
'bukhari@pkb.net.my',
|
||||
];
|
||||
|
||||
$operasi_users = User::where('cawangan', 'operasi')
|
||||
->where('roles', 'operasi')
|
||||
->whereNotIn('email', $except_users_email)
|
||||
->get(['id', 'name', 'no_telefon']);
|
||||
|
||||
return view('tetapan.unsold-commodity-notifications', compact('api_url', 'auth_user', 'settings', 'operasi_users', 'days'));
|
||||
|
||||
Reference in New Issue
Block a user