alpakas-theme/content/lists/neuigkeiten.blade.php

63 lines
2.9 KiB
PHP
Raw Permalink Normal View History

2021-12-27 12:46:46 +00:00
@extends('template.'.config('settings.template').'.content.master')
@section('content')
<div class="row" style="padding-top: 60px;">
<div class="col-xs-12">
<h1 class="mt-2">{{ $list->name }}</h1>
<br>
@if (isset($list))
{{ $list->description }}
@endif
</div>
</div>
<section>
<div class="row">
@foreach($contents as $content)
<div class="col-12 col-md-4 mb-4" >
<div class="card h-100" style="background-color: #f8f8f8;">
@if ($content->image)
2022-09-08 13:05:08 +00:00
<img class="rounded-top img-fluid" src="{{ asset($content->image) }}" loading="lazy">
2021-12-27 12:46:46 +00:00
@else
<img class="rounded-top img-fluid" src="{{ asset('template/images/konradenhof-placeholder.jpg') }}" loading="lazy">
@endif
<div class="card-body">
<div class="row">
<div class="col-12">
<h5 class="card-title" style="margin-top: 20px;">
<a href="{{ route_content($content) }}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$content->title}}'});">
{{$content->title}}
</a>
</h5>
</div>
<div class="col-12">
<small class="card-subtitle mb-2 text-muted" title="{{date('d.m.Y', strtotime($content->created_at))}}"> {{ $content->created_at->diffForHumans() }}</small>
</div>
<div class="col-12 mt-2">
{!! strIsset(Str::limit(strip_tags(html_entity_decode($content->data_fields['neuigkeit'])), 600,'...'), 'keine Angaben') !!}
</div>
</div>
</div>
<div class="card-footer text-end">
<a class="btn btn-sm btn-ci" href="{{ route_content($content) }}" 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
{!! $contents->render() !!}
<div class="col-12">
<br>
<br>
<br>
<br>
</div>
</div>
</section>
2022-09-08 13:05:08 +00:00
@stop