@extends('template.'.config('settings.template').'.content.master') @section('content')

{{$content->title}}

{!! $content->vorschau !!}
Veröffentlicht: {{date('d.m.Y', strtotime($content->created_at))}}

{!! isset($content->neuigkeit) ? $content->neuigkeit : 'keine Angaben' !!}
@isset($content->bilder)

Bilder

@foreach($content->bilder as $image)
@endforeach
@endisset
@php($otherContents = filterByContentType("News")->filter(function ($item) use ($content) { return $item->id != $content->id; })) @if($otherContents->isNotEmpty())

Weitere Nachrichten

@foreach($otherContents->take(3) as $otherContent)

{{$otherContent->title}}

{{ $otherContent->updated_at->diffForHumans() }}
{!! Str::limit($otherContent->vorschau, 280) !!}
@endforeach
@endif
@stop @section('scripts') @stop