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> </div>
</section> </section>



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






<div class="container"> <div class="container">


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






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


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


<div class="card-body"> <div class="card-body">


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

<h6 class="card-subtitle mb-2"> <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> <i style="font-weight: normal " class="text-dark"">{{date('d.m.Y H:i', strtotime($nach->created_at))}}</i>

</h6> </h6>



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




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




</div> </div>










</div> </div>


</div> </div>


@endforeach @endforeach




</div> </div>





</div> </div>
</section> </section>
@endif