kreuzberg-theme/content/news.blade.php

85 lines
2.8 KiB
PHP
Raw Normal View History

@extends('template.'.config('settings.template').'.content.master')
2020-09-24 10:04:46 +00:00
@section('content')
2020-09-29 10:25:41 +00:00
<br>
<br>
<br>
<br>
2020-09-24 10:04:46 +00:00
<section id="article-section">
<div class="container">
<div class="article-feed">
2021-05-10 06:53:59 +00:00
<article class="newsentry" style="width: 100%;">
2020-09-24 10:04:46 +00:00
2021-05-10 06:53:59 +00:00
<div class="col-lg-12">
<div class="card shadow-lg" id="news-{{$nach->id}}">
2020-09-24 10:04:46 +00:00
2021-05-10 06:53:59 +00:00
<div class="card-body">
@if($nach->created_at->diffInHours(date('Y-m-d H:i:s')) < 1)
<div class="progress" style="height: 30px;">
<div class="progress-bar progress-bar-striped progress-bar-animated bg-warning" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
<span style="color: black; font-size: 16px;">{{ $nach->created_at->diffForHumans() }} veröffentlicht</span>
2020-09-24 10:04:46 +00:00
</div>
</div>
<br>
@endif
2021-05-10 06:53:59 +00:00
<a href="#">
<h2 class="card-title">{{$nach->title}}</h2>
</a>
2020-09-24 10:04:46 +00:00
2021-05-10 06:53:59 +00:00
<h6 class="card-subtitle mb-2">
2020-09-24 10:04:46 +00:00
2021-05-10 06:53:59 +00:00
<span style="font-weight: normal " class="text-dark"">{{date('d.m.Y H:i', strtotime($nach->created_at))}}</span>
</h6>
2020-09-24 10:04:46 +00:00
2021-05-10 06:53:59 +00:00
@if ($nach->image)
<img src="{{ asset('uploads/' . $nach->image) }}" class="img-responsive" style="max-width: 100%;margin-bottom: 20px; margin-top:20px; display: block;">
2020-09-24 10:04:46 +00:00
@endif
2021-05-10 06:53:59 +00:00
<p class="card-text">
2021-05-10 07:09:33 +00:00
{!! isset($nach->additional_fields['1']) ? $nach->additional_fields['1'] : 'keine Angaben' !!}
2021-05-10 06:53:59 +00:00
</p>
2020-09-24 10:04:46 +00:00
2021-05-10 06:53:59 +00:00
</div>
2020-09-24 10:04:46 +00:00
</div>
2021-05-10 06:53:59 +00:00
</div>
2020-09-24 10:04:46 +00:00
</article>
</div>
</div>
</section>
@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/dropzone.min.js') }}"></script>
<script src="{{ asset('template/js/fslightbox.js') }}"></script>
<script>
toastr.options = {
"progressBar": true
};
</script>
@stop