protected function statuses()
    {

        $statuses = User::withoutGlobalScopes()
                ->select([DB::raw('count(id) as counter'), 'status'])
                ->whereNull('tbl_users.deleted_at');
        $this->scopeRoles($statuses);
        $result   = $statuses->groupBy('status')->get()->pluck('counter', 'status')->toArray();
        return [
            'all' => trans('antares/foundation::messages.statuses.all'),
            0     => trans('antares/foundation::messages.statuses.disabled', ['count' => array_get($result, 0, 0)]),
            1     => trans('antares/foundation::messages.statuses.active', ['count' => array_get($result, 1, 0)])
        ];
    }
protected function statuses()
    {

        $statuses = User::withoutGlobalScopes()
                ->select([DB::raw('count(id) as counter'), 'status'])
                ->whereNull('tbl_users.deleted_at');
        $this->scopeRoles($statuses);
        $result   = $statuses->groupBy('status')->get()->pluck('counter', 'status')->toArray();
        return [
            'all' => trans('antares/foundation::messages.statuses.all'),
            0     => trans('antares/foundation::messages.statuses.disabled', ['count' => array_get($result, 0, 0)]),
            1     => trans('antares/foundation::messages.statuses.active', ['count' => array_get($result, 1, 0)])
        ];
    }
protected function statuses ( ) { $ statuses = User :: withoutGlobalScopes ( ) -> select ( [ DB :: raw ( 'count(id) as counter' ) , 'status' ] ) -> whereNull ( 'tbl_users.deleted_at' ) ; $ this -> scopeRoles ( $ statuses ) ; $ result = $ statuses -> groupBy ( 'status' ) -> get ( ) -> pluck ( 'counter' , 'status' ) -> toArray ( ) ; return [ 'all' => trans ( 'antares/foundation::messages.statuses.all' ) , 0 => trans ( 'antares/foundation::messages.statuses.disabled' , [ 'count' => array_get ( $ result , 0 , 0 ) ] ) , 1 => trans ( 'antares/foundation::messages.statuses.active' , [ 'count' => array_get ( $ result , 1 , 0 ) ] ) ] ; }
Creates select for statuses

@return String
Creates select for statuses