app/Http/Controllers/UsersManagementController.php
/**
	 * Show the Users Management Main Page to the Admin.
	 *
	 * @return Response
	 */
Show the Users Management Main Page to the Admin.
@return Response
Show the Users Management Main Page to the Admin . @return Response
public function showUsersMainPanel()
	{
        $user                   = \Auth::user();
        $users 			        = User::all();
        $total_users 	        = \DB::table('users')->count();
        $total_users_confirmed  = \DB::table('users')->count();
        $total_users_confirmed  = \DB::table('users')->where('active', '1')->count();
        $total_users_locked     = \DB::table('users')->where('resent', '>', 3)->count();
        $total_users_new        = \DB::table('users')->where('active', '0')->count();
        return view('admin.show-users', [
          'user' 			        => $user,
          'users'                   => $users,
          'total_users'             => $total_users
          ]
          );
    }
public function showUsersMainPanel ( ) { $ user = \ Auth :: user ( ) ; $ users = User :: all ( ) ; $ total_users = \ DB :: table ( 'users' ) -> count ( ) ; $ total_users_confirmed = \ DB :: table ( 'users' ) -> count ( ) ; $ total_users_confirmed = \ DB :: table ( 'users' ) -> where ( 'active' , '1' ) -> count ( ) ; $ total_users_locked = \ DB :: table ( 'users' ) -> where ( 'resent' , '>' , 3 ) -> count ( ) ; $ total_users_new = \ DB :: table ( 'users' ) -> where ( 'active' , '0' ) -> count ( ) ; return view ( 'admin.show-users' , [ 'user' => $ user , 'users' => $ users , 'total_users' => $ total_users ] ) ; }
Show the Users Management Main Page to the Admin.
Show the Users Management Main Page to the Admin .