added aktuelles to home
parent
9eb3e3e7ed
commit
fa596ea835
|
@ -71,7 +71,107 @@
|
|||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="teaser">
|
||||
|
||||
<section id="article-section" >
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h2 id="aktuelles">Aktuelles</h2>
|
||||
<br>
|
||||
|
||||
</div>
|
||||
|
||||
@foreach($nachrichten as $nach)
|
||||
<div class="col-12 col-md-4">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="card h-100 shadow-lg" id="news-{{$nach->id}}">
|
||||
|
||||
@if ($nach->image)
|
||||
<img src="{{ asset('uploads/' . $nach->image) }}" class="card-img-top">
|
||||
@endif
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<h5 class="card-title">{{$nach->title}}</h5>
|
||||
|
||||
<h6 class="card-subtitle mb-2">
|
||||
@if ($nach->user and $nach->user->public_author == 1)
|
||||
<a class="text-dark" href="{{ route('author.get', [$nach->user->slug]) }}">
|
||||
<img src="{{ $nach->user->gravatar() }}" width="32" class="rounded-circle">
|
||||
{{ $nach->user->name }}</a> - <span style="font-weight: normal " class="text-dark"">{{date('d.m.Y H:i', strtotime($nach->created_at))}}</span>
|
||||
@else
|
||||
<i style="font-weight: normal " class="text-dark"">{{date('d.m.Y H:i', strtotime($nach->created_at))}}</i>
|
||||
@endif
|
||||
</h6>
|
||||
|
||||
<!--
|
||||
@if ($nach->category)
|
||||
<a href="{{ route('category.get', [$nach->category->slug]) }}">
|
||||
<div class="badge badge-primary">
|
||||
<p style="margin:3px;font-size:15px;">{{ $nach->category->name}}</p>
|
||||
</div>
|
||||
</a>
|
||||
@endif
|
||||
-->
|
||||
|
||||
|
||||
|
||||
|
||||
<p class="card-text">
|
||||
{!! $nach->nachrichten !!}
|
||||
</p>
|
||||
|
||||
@if ($nach->type_id == 2)
|
||||
<p class="card-text">
|
||||
<p style="font-weight:600;">{{ __('public.work-location') }}</p> {{ isset($nach->additional_fields['workplace']) ? $nach->additional_fields['workplace'] : '-'}}
|
||||
</p>
|
||||
|
||||
<p class="card-text">
|
||||
<p style="font-weight:600;">{{ __('public.contact-data') }}</p> {!! isset($nach->additional_fields['contact_info']) ? $nach->additional_fields['contact_info'] : '-' !!}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@endforeach
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<section class="teaser">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-4">
|
||||
|
|
Loading…
Reference in New Issue