added aktuelles to home

master
Benjamin Völkl 2020-09-29 12:13:34 +02:00
parent 9eb3e3e7ed
commit fa596ea835
1 changed files with 101 additions and 1 deletions

View File

@ -71,6 +71,106 @@
</div> </div>
</div> </div>
</section> </section>

<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"> <section class="teaser">
<div class="container"> <div class="container">
<div class="row"> <div class="row">