kreuzberg-theme/content/lists/default.blade.php

111 lines
2.9 KiB
PHP
Raw Normal View History

@extends('template.'.config('settings.template').'.content.master')
2020-09-24 10:04:46 +00:00
@section('content')
2021-12-15 12:12:02 +00:00
<div class="container">
<section class="header">
<img src="{{asset('template/images/header-preise.jpg')}}" style="width: 100%;" alt="">
</section>
</div>
2020-09-24 10:04:46 +00:00
<div class="container">
2021-12-15 12:12:02 +00:00
<div class="row">
2021-05-10 19:52:29 +00:00
<div class="col-12">
2021-12-15 12:12:02 +00:00
<h1 class="mb-5 mt-3">Aktuelles</h1>
</div>
2021-02-09 15:23:15 +00:00
2021-12-15 12:12:02 +00:00
@foreach($contents as $content)
<div class="col-12 col-md-6 col-lg-4 mb-4">
2021-02-09 15:23:15 +00:00
2021-02-09 15:31:26 +00:00
2021-02-09 15:23:15 +00:00
2021-12-15 12:12:02 +00:00
<div class="card h-100 shadow-lg mb-4" id="news-{{$content->id}}">
2021-02-09 15:23:15 +00:00
2021-12-15 12:12:02 +00:00
@if ($content->image)
2022-12-13 14:29:20 +00:00
<img src="{{$content->image}}" class="card-img-top">
2021-12-15 12:12:02 +00:00
@endif
2021-02-09 15:31:26 +00:00
2021-12-15 12:12:02 +00:00
<div class="card-body">
2021-02-09 15:31:26 +00:00
2021-02-09 15:23:15 +00:00
2021-12-15 12:12:02 +00:00
<h4 class="card-title">{{$content->title}}</h4>
2021-02-09 15:23:15 +00:00
2021-12-15 12:12:02 +00:00
<h6 class="card-subtitle mb-2">
2021-02-09 15:23:15 +00:00
2021-12-27 10:59:01 +00:00
<div class="small text-muted">{{date('d.m.Y H:i', strtotime($content->created_at))}}</div>
2021-02-09 15:23:15 +00:00
2021-12-15 12:12:02 +00:00
</h6>
2021-02-09 15:31:26 +00:00
2021-12-15 12:12:02 +00:00
<p class="card-text">
2021-12-27 10:59:01 +00:00
{!! strIsset(Str::limit(strip_tags(html_entity_decode($content->data_fields['neuigkeit'])), 600,'...'), 'keine Angaben') !!}
2021-02-09 15:31:26 +00:00
2021-12-15 12:12:02 +00:00
</p>
2021-02-09 15:31:26 +00:00
2021-12-15 12:12:02 +00:00
</div>
2021-02-09 15:23:15 +00:00
2021-12-15 12:12:02 +00:00
<div class="card-footer text-end">
2022-12-13 14:04:54 +00:00
<a class="btn btn-sm btn-ci" href="{{ $content->path }}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$content->title}}'});">
2021-12-15 12:12:02 +00:00
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>
2021-02-09 15:23:15 +00:00
2021-02-09 15:31:26 +00:00
2021-12-15 12:12:02 +00:00
</div>
2021-02-09 15:31:26 +00:00
2021-12-15 12:12:02 +00:00
</div>
2021-02-09 15:31:26 +00:00
2021-12-15 12:12:02 +00:00
@endforeach
2021-02-09 15:31:26 +00:00
2021-12-15 12:12:02 +00:00
</div>
2021-02-09 15:23:15 +00:00
2021-12-15 12:12:02 +00:00
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
2021-02-09 15:23:15 +00:00
2020-09-24 10:04:46 +00:00
</div>
@stop
@section('scripts')
<script src="https://cdnjs.cloudflare.com/ajax/libs/jscroll/2.4.1/jquery.jscroll.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script src="{{ asset('template/js/fslightbox.js') }}"></script>
@stop