Update 'content/index.blade.php'
parent
c187413404
commit
036e3081da
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue