Powrót Historia posta
{{ $unreadNotifications }}
@php($autoSave = $posts->where('additional_info', 2)->first()) @php($lastDate = $autoSave ? $autoSave->updated_at->format('Y-m-d') : null) @if ($autoSave)
Zmiany z {{ \Carbon\Carbon::parse($lastDate)->translatedFormat('d F, Y') }}
@if ($autoSave->category)
{{ $autoSave->category->name }}
@endif @if ($autoSave->read_time)

{{ $autoSave->read_time }} min

@endif
{{ $autoSave->title }} {{ $autoSave->excerpt }}
{{ $autoSave->updated_at->diffForHumans() }}, {{ $autoSave->updated_at->format('H:i') }} Autozapis
@if ($autoSave->changelog)
{{ $autoSave->changeUser->firstname . ' ' . $autoSave->changeUser->lastname }} {{ $autoSave->changelog }}
@endif
@endif @if($lastDate != $currentPost->updated_at->format('Y-m-d')) @php($lastDate = $currentPost->updated_at->format('Y-m-d')) @if ($autoSave)
Zmiany z {{ \Carbon\Carbon::parse($lastDate)->translatedFormat('d F, Y') }}
@else
Zmiany z {{ \Carbon\Carbon::parse($currentPost->updated_at)->translatedFormat('d F, Y') }}
@endif @else
@endif
@if ($currentPost->category)
{{ $currentPost->category->name }}
@endif @if ($currentPost->read_time)

{{ $currentPost->read_time }} min

@endif
{{ $currentPost->title }} {{ $currentPost->excerpt }}
{{ $currentPost->updated_at->diffForHumans() }}, {{ $currentPost->updated_at->format('H:i') }} Aktualny {!! $currentPost->additional_info == 1 ? ' Przywrócono' : '' !!}
@if ($currentPost->changelog)
{{ $currentPost->changeUser->firstname . ' ' . $currentPost->changeUser->lastname }} {{ $currentPost->changelog }}
@endif
@if (count($posts) > 0) @foreach ($posts as $post) @php($postDate = $post->updated_at->format('Y-m-d')) @if($lastDate != $postDate && $post->additional_info != 2) @php($lastDate = $postDate)
Zmiany z {{ \Carbon\Carbon::parse($postDate)->translatedFormat('d F, Y') }}
@elseif($post->additional_info == 2) @continue @else
@endif
@if ($post->category)
{{ $post->category->name }}
@endif @if ($post->read_time)

{{ $post->read_time }} min

@endif
{{ $post->title }} {{ $post->excerpt }}
{{ $post->updated_at->diffForHumans() }}, {{ $post->updated_at->format('H:i') }} @if($post->additional_info) {!! $post->additional_info == 1 ? ' Przywrócono' : '' !!} @endif
@if ($post->changelog)
{{ $post->changeUser->firstname . ' ' . $post->changeUser->lastname }} {{ $post->changelog }}
@endif
@endforeach @endif