From 281cd9e57a4c95172946c711dfde2ee3befabf2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20V=C3=B6lkl?= Date: Sun, 17 Dec 2023 18:32:49 +0100 Subject: [PATCH] . --- content/contents/leistungen.blade.php | 28 ++++++++++++ content/index.blade.php | 63 +++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) diff --git a/content/contents/leistungen.blade.php b/content/contents/leistungen.blade.php index 924947b..6389a49 100644 --- a/content/contents/leistungen.blade.php +++ b/content/contents/leistungen.blade.php @@ -81,6 +81,34 @@ + + @php($otherContents = filterByContentType("Leistungen")->filter(function ($item) use ($content) { return $item->id != $content->id; })) + + @if($otherContents->isNotEmpty()) +
+
+
+

Weitere Leistungen

+
+ + @foreach($otherContents->take(3) as $otherContent) + + + + @endforeach + +
+ @endif @stop diff --git a/content/index.blade.php b/content/index.blade.php index 7fdfbf8..33fca93 100644 --- a/content/index.blade.php +++ b/content/index.blade.php @@ -21,6 +21,69 @@ + + @if($type->get("Leistungen")->status) + @php($leistungen = filterByContentType("Leistungen")) + @if($leistungen->isNotEmpty()) +
+
+ + +
+

Leistungen

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

{{$content->title}}

+

{{$content->kurzbeschreibung}}

+
+
+
+
+ +
+ + @endforeach + + + + + @if($leistungen->count() > 3) + + + + @endif + + +
+
+
+ + @endif + @endif + + + + + + @if($type->get("News")->status) @php($news = filterByContentType("News")) @if($news->isNotEmpty())