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

92 lines
1.6 KiB
PHP
Raw Normal View History

@extends('template.'.config('settings.template').'.content.master')
2020-09-24 10:04:46 +00:00
@section('content')
<div class="container">
<div class="col-12">
<br><br>
2020-09-29 10:25:41 +00:00
<h1>Aktuelles</h1>
2020-09-24 10:04:46 +00:00
</div>
2021-02-09 15:23:15 +00:00
@foreach($nachrichten as $nach)
2021-05-10 19:52:29 +00:00
<div class="col-12">
2021-02-09 15:23:15 +00:00
2021-02-09 15:31:26 +00:00
<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
2021-02-09 15:23:15 +00:00
<div class="card-body">
2021-02-09 15:31:26 +00:00
<h5 class="card-title">{{$nach->title}}</h5>
<h6 class="card-subtitle mb-2">
<i style="font-weight: normal " class="text-dark"">{{date('d.m.Y H:i', strtotime($nach->created_at))}}</i>
2021-02-09 15:23:15 +00:00
2021-02-09 15:31:26 +00:00
</h6>
2021-02-09 15:23:15 +00:00
2021-02-09 15:31:26 +00:00
<p class="card-text">
2021-05-10 19:52:29 +00:00
{!! isset($nach->additional_fields['1']) ? $nach->additional_fields['1'] : 'keine Angaben' !!}
2021-02-09 15:31:26 +00:00
</p>
2021-02-09 15:23:15 +00:00
</div>
2021-02-09 15:31:26 +00:00
2021-02-09 15:23:15 +00:00
</div>
2021-02-09 15:31:26 +00:00
</div>
2021-02-09 15:23:15 +00:00
@endforeach
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