public function getIndex()
    {
        // get alls users
        $emptyUsers =  Sentry::getUserProvider()->getEmptyUser();

        // users search
        $userId = Input::get('userIdSearch');
        if(!empty($userId)) {
            $emptyUsers = $emptyUsers->where('users.id', $userId);
        }

        $username = Input::get('usernameSearch');
        if(!empty($username)) {
            $emptyUsers = $emptyUsers->where('username', 'LIKE', '%'.$username.'%');
        }

        $firstName = Input::get('firstNameSearch');
        if(!empty($firstName)) {
            $emptyUsers = $emptyUsers->where('first_name', 'LIKE', '%'.$firstName.'%');
        }

        $lastName = Input::get('lastNameSearch');
        if(!empty($lastName)) {
            $emptyUsers = $emptyUsers->where('last_name', 'LIKE', '%'.$lastName.'%');
        }

        $email = Input::get('emailSearch');
        if(!empty($email)) {
            $emptyUsers = $emptyUsers->where('email', 'LIKE', '%'.$email.'%');
        }

        $bannedUsers = Input::get('bannedSearch');
        if(isset($bannedUsers) && $bannedUsers !== "") {
            $emptyUsers = $emptyUsers->join('throttle', 'throttle.user_id', '=', 'users.id')
                ->where('throttle.banned', '=', $bannedUsers)
                ->select('users.id', 'users.username', 'users.last_name', 'users.first_name', 'users.email', 'users.permissions', 'users.activated');
        }

        $emptyUsers->distinct();

        $users = $emptyUsers->paginate(Config::get('syntara::config.item-perge-page'));
        $datas['links'] = $users->links();
        $datas['users'] = $users;

        // ajax request : reload only content container
        if(Request::ajax()) {
            $html = View::make(Config::get('syntara::views.users-list'), array('datas' => $datas))->render();

            return Response::json(array('html' => $html));
        }

        $this->layout = View::make(Config::get('syntara::views.users-index'), array('datas' => $datas));
        $this->layout->title = trans('syntara::users.titles.list');
        $this->layout->breadcrumb = Config::get('syntara::breadcrumbs.users');
    }