v1.5.24a - Fixed code

This commit is contained in:
Anders 2021-05-17 10:32:19 +02:00
parent ad3a1e7570
commit e24b06d27c
1 changed files with 4 additions and 4 deletions

View File

@ -128,7 +128,7 @@
@foreach($news as $new) @foreach($news as $new)
<!--Code to list events--> <!--Code to list events-->
@if($new->type == 'News')<!--Code that prints news--> @if($new->type == 'News')<!--Code that prints 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)))
<div class="card"> <div class="card">
<div class="img"><img src="{{URL::asset('/images/icons/news.svg')}}" alt="News:"></div> <div class="img"><img src="{{URL::asset('/images/icons/news.svg')}}" alt="News:"></div>
<div class="title"> <div class="title">
@ -163,7 +163,7 @@
</div> </div>
@endif @endif
@elseif($new->type == 'Activity')<!--Code that prints events--> @elseif($new->type == 'Activity')<!--Code that prints events-->
@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)))
<div class="card"> <div class="card">
<div class="img"><a href="{{ route('events.index') }}"><img src="{{URL::asset('/images/icons/Aktiviteter.svg')}}" alt="Aktiviteter:"></a></div> <div class="img"><a href="{{ route('events.index') }}"><img src="{{URL::asset('/images/icons/Aktiviteter.svg')}}" alt="Aktiviteter:"></a></div>
<div class="title">{{ $new->subname }} <div class="title">{{ $new->subname }}
@ -202,7 +202,7 @@
</div> </div>
@endif @endif
@elseif($new->type == 'Guide')<!--Code that prints guides--> @elseif($new->type == 'Guide')<!--Code that prints guides-->
@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)))
<div class="card"> <div class="card">
<div class="img"><a href="{{ route('guides.index') }}"><img src="{{URL::asset('/images/icons/Vejledninger.svg')}}" alt="Vejledninger:"></a></div> <div class="img"><a href="{{ route('guides.index') }}"><img src="{{URL::asset('/images/icons/Vejledninger.svg')}}" alt="Vejledninger:"></a></div>
<div class="title">{{ $new->subname }} <div class="title">{{ $new->subname }}
@ -225,7 +225,7 @@
@endif @endif
<!----> <!---->
@elseif($new->type == 'MultipleEvent') @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)))
<div class="card"> <div class="card">
<div class="img"><a href="{{ route('multiple-events.index') }}"><img src="{{URL::asset('/images/icons/calendar2.svg')}}" alt="aktiviteter:"></a></div> <div class="img"><a href="{{ route('multiple-events.index') }}"><img src="{{URL::asset('/images/icons/calendar2.svg')}}" alt="aktiviteter:"></a></div>
<div class="title">Ugentlig aktiviteter for uge {{ $new->subname }} <div class="title">Ugentlig aktiviteter for uge {{ $new->subname }}