Benjamin Völkl 2021-02-09 12:31:26 -03:00
parent aeaa04fe5f
commit fdddd8b786
2 changed files with 34 additions and 52 deletions

View File

@ -106,24 +106,12 @@
<h5 class="card-title">{{$nach->title}}</h5> <h5 class="card-title">{{$nach->title}}</h5>


<h6 class="card-subtitle mb-2"> <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> <i style="font-weight: normal " class="text-dark"">{{date('d.m.Y H:i', strtotime($nach->created_at))}}</i>
@endif
</h6> </h6>


<!--
@if ($nach->list)
<a href="{{ route('list.get', [$nach->list->slug]) }}">
<div class="badge badge-primary">
<p style="margin:3px;font-size:15px;">{{ $nach->list->name}}</p>
</div>
</a>
@endif
-->






@ -132,15 +120,6 @@
{!! $nach->nachrichten !!} {!! $nach->nachrichten !!}
</p> </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







View File

@ -28,56 +28,59 @@




@foreach($nachrichten as $nach) @foreach($nachrichten as $nach)
<div class="col-12 col-md-4">






<div class="col-sm-4" style="padding-bottom: 1rem;">


<div class="card" style="background-color: #f8f8f8;">
<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"> <div class="card-body">
<div class="row">


<div class="col-12 col-lg-6">
<h5 class="card-title" style="margin-top: 20px;">
<a href="{{ route_content($nach) }}">
{{$nach->title}}
</a>
</h5>


</div> <h5 class="card-title">{{$nach->title}}</h5>


<div class="col-6 col-lg-1"> <h6 class="card-subtitle mb-2">
<br>
<h6 class="card-subtitle mb-2 text-muted">{{date('d.m.Y', strtotime($nach->created_at))}}</h6>


</div> <i style="font-weight: normal " class="text-dark"">{{date('d.m.Y H:i', strtotime($nach->created_at))}}</i>
<div class="col-6 col-lg-2 text-end ">
<br>
<a class="btn btn-ci" href="{{ route_content($nach) }}">
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"> </h6>
<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>



<p class="card-text">
{!! $nach->nachrichten !!}
</p>








</div> </div>
</div>
</div>











</div>

</div>

@endforeach @endforeach






{!! $nachrichten->render() !!}

</div> </div>