Update 'content/index.blade.php'

master
Benjamin Völkl 2021-12-14 09:12:56 +00:00
parent c187413404
commit 036e3081da
1 changed files with 6 additions and 8 deletions

View File

@ -72,7 +72,6 @@
</section>


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

<div class="container">
@ -84,23 +83,23 @@

</div>

@foreach($nachrichten as $nach)
@foreach(filterByContentType($mdContents, "News")->take(3) as $content)
<div class="col-12">

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

@if ($nach->image)
<img src="{{ asset('uploads/' . $nach->image) }}" class="card-img-top">
@if ($content->image)
<img src="{{ asset('uploads/' . $content->image) }}" class="card-img-top">
@endif

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

<p class="card-text">
{!! isset($nach->additional_fields['1']) ? $nach->additional_fields['1'] : 'keine Angaben' !!}
dfa

</p>
</div>
@ -115,7 +114,6 @@

</div>
</section>
@endif