diff --git a/app/Data/ItemsCollection.php b/app/Data/ItemsCollection.php index e17a91d..b70abeb 100644 --- a/app/Data/ItemsCollection.php +++ b/app/Data/ItemsCollection.php @@ -108,8 +108,10 @@ class ItemsCollection ); })->map(function ($item) use ($locale) { return [ - '_id' => $item['_id'], - '_name' => $item['_name'], + 'item' => [ + '_id' => $item['_id'], + '_name' => $item['_name'], + ], 'locale' => $this->locales[$locale][$item['_id']] ?? '' ]; })->values();