From efcee66eb8a4d895a80db58703b386988eb67c6f Mon Sep 17 00:00:00 2001 From: Gustavo Luigi <=> Date: Tue, 31 Oct 2023 02:37:59 -0300 Subject: [PATCH] display produkte in home --- content/index.blade.php | 75 +++++++++++++++++++++++++++++++++++------ 1 file changed, 64 insertions(+), 11 deletions(-) diff --git a/content/index.blade.php b/content/index.blade.php index 3d80cf0..8a3b6d9 100644 --- a/content/index.blade.php +++ b/content/index.blade.php @@ -2,18 +2,12 @@ @extends('template.'.config('settings.template').'.content.master') @section('content') -
+
-
-
-

{{config('settings.name')}}

-

{{config('settings.description')}}

+
+
+

{{config('settings.name')}}

+

{{config('settings.description')}}

@@ -87,7 +81,66 @@ @endif @endif + @if($type->get("Produkte")->status) + @php($products = filterByContentType("Produkte")) + @if($products->isNotEmpty()) +
+
+
+
+

Produkte

+
+ + @foreach($products->take(3) as $content) +
+
+ + + +
+

+ + {{$content->title}} + +

+
+ + + {{$content->updated_at->diffForHumans()}} + +
+ + {{$content->kurzbeschreibung}} +
+ + + +
+
+ @endforeach + + @if($products->count() > 3) + + @endif + +
+
+
+ @endif + @endif