@php $now = now(); $createdAt = $created_at ? \Carbon\Carbon::parse($created_at) : null; $updatedAt = $updated_at ? \Carbon\Carbon::parse($updated_at) : null; $publishedAt = $published_at ? \Carbon\Carbon::parse($published_at) : null; // Count visible items $visibleItems = 1; if($publishedAt) $visibleItems++; if($updatedAt) $visibleItems++; @endphp
{{-- Created By --}}
{{-- @if(isset($creator_avatar)) {{ $creater }} @else
@endif --}}
{{ __('labels.created_by') }}
{{ $creater ?? __('labels.system') }}
{{ $createdAt ? $createdAt->format('Y-m-d H:i') : '' }}
{{-- Published At --}} @if($publishedAt)
@if($is_published ?? false) @else @endif
{{ __('labels.published_at') }}
{{ $publishedAt->format('Y-m-d H:i') }}
@if (isset($publisher)) {{ __('labels.by') }}: {{ $publisher }} @endif
@endif {{-- Last Updated --}} @if($updatedAt)
{{ __('labels.last_updated') }}
{{ $updatedAt->format('Y-m-d H:i') }}
@if (isset($updater)) {{ __('labels.by') }}: {{ $updater }} @endif
@endif