From 47c402b1597565870369ddc6754ded6d8afa5e10 Mon Sep 17 00:00:00 2001 From: Gustavo Luigi <=> Date: Thu, 29 Jun 2023 06:40:57 -0300 Subject: [PATCH] added lists --- content/index.blade.php | 74 ++++++++++++++++++++++------- content/lists/neuigkeiten.blade.php | 1 - variables.json | 6 --- 3 files changed, 56 insertions(+), 25 deletions(-) diff --git a/content/index.blade.php b/content/index.blade.php index a8ee55c..1db356b 100644 --- a/content/index.blade.php +++ b/content/index.blade.php @@ -45,25 +45,63 @@
-
-
-

Neuigkeiten

-
-
-
    -
-
-
+ @php($contents = filterByContentType("Aktuelles")) + @if($contents->isNotEmpty()) +
+
+

Neuigkeiten

+
+
+
+
+ @foreach($contents as $content) +
+
+ +
+

{{$content->title}}

+ {{$content->created_at}} +

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus architecto autem beatae, delectus dignissimos dolore dolorum, eius explicabo illo illum ipsam laborum libero mollitia neque quis repellendus, suscipit veritatis voluptatem!

+ +
+
+
+ @endforeach +
+
+
+ @endif -
-
-

Wettbewerbe

-
-
-
    -
-
-
+ @php($contents = filterByContentType("Wettbewerb")) + @if($contents->isNotEmpty()) +
+
+

Wettbewerbe

+
+
+
+
+ @foreach($contents as $content) +
+
+ +
+

{{$content->title}}

+ {{$content->created_at}} +

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus architecto autem beatae, delectus dignissimos dolore dolorum, eius explicabo illo illum ipsam laborum libero mollitia neque quis repellendus, suscipit veritatis voluptatem!

+ +
+
+
+ @endforeach +
+
+
+ @endif
diff --git a/content/lists/neuigkeiten.blade.php b/content/lists/neuigkeiten.blade.php index e6bc6b1..dbf7a72 100644 --- a/content/lists/neuigkeiten.blade.php +++ b/content/lists/neuigkeiten.blade.php @@ -17,7 +17,6 @@
@foreach($contents as $content) -
diff --git a/variables.json b/variables.json index 595dd11..8027d20 100644 --- a/variables.json +++ b/variables.json @@ -4,11 +4,5 @@ "value": "", "type": "date", "required": true - }, - - { - "name": "Filter Fields", - "type": "array", - "required": true } ] \ No newline at end of file