/** * Show the users index page. * * @return \Response */ public function getIndex() { $users = $this->users->findAllPaginated(); $tagList = $this->tags->listAll(); $categoryList = $this->categories->listAll(); $userList = $this->users->listAllCompany(); $this->view('admin.users.jobseeker', compact('users', 'tagList', 'categoryList', 'userList')); }
/** * Handle the creation of a tag. * * @return \Illuminate\Http\RedirectResponse */ public function postIndex() { $userid = $this->users->findById(\Input::get('userid')); $userid->active_account = \Input::get('active_account'); $userid->save(); $users = $this->users->findAllPaginated(); /////////////////////////////////// if (\Input::get('active_account') == 1) { if (!empty(\Input::get('emailcompany'))) { \Mail::queue('emails.auth.companyNotification', array('msg' => \Lang::get('emails.welcomelogin')), function ($message) { $message->to(\Input::get('emailcompany'))->subject(\Lang::get('emails.newCompany')); }); } ////////////////// } $this->view('admin.users.list', compact('users')); }
/** * Show the users index page. * * @return \Response */ public function getIndex() { $users = $this->users->findAllPaginated(); $this->view('admin.users.list', compact('users')); }