-
{{ $article['name'] }}
+
{{ $product_name }}
@@ -10,14 +10,15 @@
- 3.50 €
+ {{ $article['semences']['price'] ?? null }}
Semence
-
-
- 1.65 €
- Plant
-
+ @if ($article['plants'] ?? false)
+
+ {{ $article['plants']['price'] }}
+ Plant
+
+ @endif
diff --git a/resources/views/Shop/layout/partials/category_articles.blade.php b/resources/views/Shop/layout/partials/category_articles.blade.php
index 756fcce1..3d8a5f90 100644
--- a/resources/views/Shop/layout/partials/category_articles.blade.php
+++ b/resources/views/Shop/layout/partials/category_articles.blade.php
@@ -1,5 +1,5 @@
- @foreach ($articles as $article)
+ @foreach ($articles as $product_name => $article)
@include('Shop.Articles.partials.article')