Benjamin Völkl 2023-07-01 15:22:55 +02:00
parent 77a98f4567
commit e90f14fa9f
1 changed files with 0 additions and 33 deletions

View File

@ -77,40 +77,7 @@


</div> </div>


@foreach(filterByContentType("News")->take(3) as $content)
<div class="col-12 col-md-6 col-lg-4 mb-4">


<div class="card h-100 shadow-lg" id="news-{{$content->id}}" style="background-color: #fff8f05e;">

@if ($content->image)
<img src="{{$content->image}}" class="card-img-top">
@endif

<div class="card-body">
<h5 class="card-title">{{$content->title}}</h5>
<h6 class="card-subtitle mb-2">
<div class="small text-muted">{{date('d.m.Y H:i', strtotime($content->created_at))}}</div>
</h6>

<p class="card-text">
{!! strIsset(Str::limit(strip_tags(html_entity_decode($content->data_fields['neuigkeit'])), 600,'...'), 'keine Angaben') !!}
</p>
</div>

<div class="card-footer text-end">
<a class="btn btn-sm btn-ci" href="{{$content->path}}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$content->title}}'});">
Mehr lesen
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" />
</svg>
</a>
</div>

</div>

</div>

@endforeach


</div> </div>