From e24b06d27cbc8853ea79a553aac7c293e73f84c4 Mon Sep 17 00:00:00 2001 From: Anders Date: Mon, 17 May 2021 10:32:19 +0200 Subject: [PATCH] v1.5.24a - Fixed code --- skolehjem/resources/views/app/news/index.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/skolehjem/resources/views/app/news/index.blade.php b/skolehjem/resources/views/app/news/index.blade.php index b2e73e3..87c1cba 100644 --- a/skolehjem/resources/views/app/news/index.blade.php +++ b/skolehjem/resources/views/app/news/index.blade.php @@ -128,7 +128,7 @@ @foreach($news as $new) @if($new->type == 'News') - @if(\Carbon\Carbon::now() < date("Y-m-d H:i", strtotime($new->news_expiration_date))) + @if(\Carbon\Carbon::now() > date("Y-m-d H:i", strtotime($new->news_expiration_date)))
News:
@@ -163,7 +163,7 @@
@endif @elseif($new->type == 'Activity') - @if(\Carbon\Carbon::now() < date("Y-m-d H:i", strtotime($new->news_expiration_date))) + @if(\Carbon\Carbon::now() > date("Y-m-d H:i", strtotime($new->news_expiration_date)))
Aktiviteter:
{{ $new->subname }} @@ -202,7 +202,7 @@
@endif @elseif($new->type == 'Guide') - @if(\Carbon\Carbon::now() < date("Y-m-d H:i", strtotime($new->news_expiration_date))) + @if(\Carbon\Carbon::now() > date("Y-m-d H:i", strtotime($new->news_expiration_date)))
Vejledninger:
{{ $new->subname }} @@ -225,7 +225,7 @@ @endif @elseif($new->type == 'MultipleEvent') - @if(\Carbon\Carbon::now() < date("Y-m-d H:i:s", strtotime($new->news_expiration_date))) + @if(\Carbon\Carbon::now() > date("Y-m-d H:i:s", strtotime($new->news_expiration_date)))
aktiviteter:
Ugentlig aktiviteter for uge {{ $new->subname }}