diff --git a/content/index.blade.php b/content/index.blade.php index 00f495a..19af275 100644 --- a/content/index.blade.php +++ b/content/index.blade.php @@ -72,7 +72,6 @@ - @if ($nachrichten->count() > 0)
@@ -84,23 +83,23 @@
- @foreach($nachrichten as $nach) + @foreach(filterByContentType($mdContents, "News")->take(3) as $content)
- @if ($nach->image) - + @if ($content->image) + @endif
-
{{$nach->title}}
+
{{$content->title}}
- {{date('d.m.Y H:i', strtotime($nach->created_at))}} + {{date('d.m.Y H:i', strtotime($content->created_at))}}

- {!! isset($nach->additional_fields['1']) ? $nach->additional_fields['1'] : 'keine Angaben' !!} + dfa

@@ -115,7 +114,6 @@
- @endif