public function totals()
    {
        if ($this->hasSoftDeleting()) {
            return [
                        'all' => $this->items($count = true),
                        'with_trashed' => $this->allItems($count = true),
                        'only_trashed' => $this->onlyTrashedItems($count = true),
                    ];
        }

        return ['all' => $this->items($count = true)];
    }
public function totals()
    {
        if ($this->hasSoftDeleting()) {
            return [
                        'all' => $this->items($count = true),
                        'with_trashed' => $this->allItems($count = true),
                        'only_trashed' => $this->onlyTrashedItems($count = true),
                    ];
        }

        return ['all' => $this->items($count = true)];
    }
public function totals ( ) { if ( $ this -> hasSoftDeleting ( ) ) { return [ 'all' => $ this -> items ( $ count = true ) , 'with_trashed' => $ this -> allItems ( $ count = true ) , 'only_trashed' => $ this -> onlyTrashedItems ( $ count = true ) , ] ; } return [ 'all' => $ this -> items ( $ count = true ) ] ; }
Return Totals of All, With Trashed and Only Trashed.

@return array
Return Totals of All With Trashed and Only Trashed .