Merged in afiqhamzah/feat/unsold-commodity-notification (pull request #45)
Add filter operasi user by roles operasi
This commit is contained in:
@@ -55,7 +55,9 @@ class TetapanController extends Controller
|
||||
$settings = array_combine($key, $values);
|
||||
|
||||
$days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
|
||||
$operasi_users = User::where('cawangan', 'operasi')->get(['id', 'name', 'no_telefon']);
|
||||
$operasi_users = User::where('cawangan', 'operasi')
|
||||
->where('roles', 'cawangan')
|
||||
->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