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) + +
+ +
+ +
+

{{$otherContent->title}}

+ {{$otherContent->kurzbeschreibung}} +
+
+
+
+ + @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())