diff --git a/packages/Sarga/API/Http/Controllers/Products.php b/packages/Sarga/API/Http/Controllers/Products.php index 75bb0fd..8b61527 100644 --- a/packages/Sarga/API/Http/Controllers/Products.php +++ b/packages/Sarga/API/Http/Controllers/Products.php @@ -57,7 +57,6 @@ class Products extends ProductController ->limit(3) ->get(); - $banner = $sliderRepository->select('title', 'path', 'content', 'expired_at', 'sort_order', 'slider_path') ->where(function ($query) { $query->where('expired_at', '>=', Carbon::now()->format('Y-m-d')) @@ -67,7 +66,6 @@ class Products extends ProductController ->limit(1) ->get(); - $newProducts = ProductResource::collection($this->productRepository->getNewProducts()); $featuredProducts = ProductResource::collection($this->productRepository->getFeaturedProducts()); // $slider_map = $sliders->map(function ($item, $key){ diff --git a/packages/Sarga/API/Http/Resources/Catalog/Product.php b/packages/Sarga/API/Http/Resources/Catalog/Product.php index 546f18a..8b5f15f 100644 --- a/packages/Sarga/API/Http/Resources/Catalog/Product.php +++ b/packages/Sarga/API/Http/Resources/Catalog/Product.php @@ -51,14 +51,13 @@ class Product extends JsonResource 'in_stock' => $product->haveSufficientQuantity(1), 'is_wishlisted' => $this->isWishlisted($product) , 'is_item_in_cart' => \Cart::hasProduct($product), - //'shop_title' => $this->shop_title, + 'shop_title' => $this->shop_title, //'logo' => $this->logo ? Storage::url($this->logo) : null, 'new' => $this->new, 'featured' => $this->featured, 'qty' => $this->qty, 'status' => $this->status, 'product_number' => $this->product_number, - 'seller' => $this->seller, // 'brand' => $product->brand->name ?? '',