kreuzberg-theme/content/list.blade.php

105 lines
1.9 KiB
PHP
Raw Normal View History

2020-09-24 10:04:46 +00:00
@extends('template.'.\Setting::get('template', 'default').'.content.master')
@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
<p class="intro">
2021-02-09 14:52:04 +00:00
@if (isset($listModel))
{{ $listModel->description }}
2020-09-24 10:04:46 +00:00
@else
{{ \Setting::get('description')}}
@endif
<br>
</p>
</div>
2021-02-09 15:23:15 +00:00
@foreach($nachrichten as $nach)
2021-02-09 15:31:26 +00:00
<div class="col-12 col-md-4">
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">
{!! $nach->nachrichten !!}
</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