if there are now news section will not be included

master
Benjamin Völkl 2021-05-10 08:13:49 +02:00
parent fd8d921d1f
commit 632acab0c3
1 changed files with 4 additions and 38 deletions

View File

@ -71,12 +71,10 @@
</div>
</section>


@if ($nachrichten->count() > 0)
<section id="article-section" >





<div class="container">

<div class="row">
@ -89,10 +87,6 @@
@foreach($nachrichten as $nach)
<div class="col-12 col-md-4">





<div class="card h-100 shadow-lg" id="news-{{$nach->id}}">

@if ($nach->image)
@ -100,53 +94,25 @@
@endif

<div class="card-body">


<h5 class="card-title">{{$nach->title}}</h5>

<h6 class="card-subtitle mb-2">

<i style="font-weight: normal " class="text-dark"">{{date('d.m.Y H:i', strtotime($nach->created_at))}}</i>

</h6>






<p class="card-text">
{!! $nach->nachrichten !!}
</p>




<p class="card-text">{!! $nach->nachrichten !!}</p>
</div>









</div>

</div>

@endforeach



</div>




</div>
</section>
@endif