Filter by dept for user display

This commit is contained in:
snipe 2017-05-23 01:09:03 -07:00
parent 6c623866c0
commit 8caf6623f1

View file

@ -52,6 +52,10 @@ class UsersController extends Controller
$users = $users->where('company_id','=',$request->input('company_id'));
}
if ($request->has('department_id')) {
$users = $users->where('department_id','=',$request->input('department_id'));
}
$order = $request->input('order') === 'asc' ? 'asc' : 'desc';
$offset = request('offset', 0);
$limit = request('limit', 50);