Update 'content/index.blade.php'
parent
c187413404
commit
036e3081da
|
@ -72,7 +72,6 @@
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
@if ($nachrichten->count() > 0)
|
|
||||||
<section id="article-section" >
|
<section id="article-section" >
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
@ -84,23 +83,23 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@foreach($nachrichten as $nach)
|
@foreach(filterByContentType($mdContents, "News")->take(3) as $content)
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
|
|
||||||
<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 ($content->image)
|
||||||
<img src="{{ asset('uploads/' . $nach->image) }}" class="card-img-top">
|
<img src="{{ asset('uploads/' . $content->image) }}" class="card-img-top">
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="card-title">{{$nach->title}}</h5>
|
<h5 class="card-title">{{$content->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($content->created_at))}}</i>
|
||||||
</h6>
|
</h6>
|
||||||
|
|
||||||
<p class="card-text">
|
<p class="card-text">
|
||||||
{!! isset($nach->additional_fields['1']) ? $nach->additional_fields['1'] : 'keine Angaben' !!}
|
dfa
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -115,7 +114,6 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue