public static function translateList($items, $languageSlug = '')
    {
        if($items) {
            if(is_a($items, 'Illuminate\Database\Eloquent\Collection')) {
                $translatedItems = $items->map(
                    function ($post) use ($languageSlug) {
                        foreach ($post->getAttributes() as $key => $value) {
                            $post->$key = self::translate($value, $languageSlug);
                        }
                        return $post;
                    }
                );
            } else {
                $translatedItems = $items;
                foreach($items as $key=>$value){
                    $translatedItems->$key = self::translate($value, $languageSlug);
                }
            }

            //if pagination
            if(method_exists($items, "setCollection")) {
                $collection = new Collection($translatedItems);
                return $items->setCollection($collection);
            }

            return $translatedItems;
        }
    }