@if($search || $hasFilters) @endif
{{ number_format($logs->total()) }} log entries Page {{ $logs->currentPage() }} / {{ $logs->lastPage() }}
@if($logs->isEmpty())

No logs match your search.

@else
@foreach($logs as $log) @php $old = $log->properties->get('old', []); $attrs = $log->properties->get('attributes', []); $extra = array_diff_key($log->properties->toArray(), array_flip(['old', 'attributes'])); $hasDiff = !empty($old) || !empty($attrs) || !empty($extra); @endphp
@switch($log->event) @case('created') @break @case('updated') @break @case('deleted') @break @default @endswitch
{{ $log->description }}
@if($log->log_name) {{ $log->log_name }} · @endif @if($log->subject_type) {{ class_basename($log->subject_type) }} #{{ $log->subject_id }} · @endif @if($log->causer_id) · @endif {{ $log->created_at->diffForHumans() }}
{{ $log->created_at->format('d M Y, H:i') }} @if($hasDiff) @endif
@if($hasDiff)
@if(!empty($old) || !empty($attrs))
Changes
@foreach(array_unique(array_merge(array_keys((array)$old), array_keys((array)$attrs))) as $key) @endforeach
Field Before After
{{ $key }} {{ is_array($old[$key] ?? null) ? json_encode($old[$key]) : ($old[$key] ?? '—') }} {{ is_array($attrs[$key] ?? null) ? json_encode($attrs[$key]) : ($attrs[$key] ?? '—') }}
@endif @if(!empty($extra))
Properties
{{ json_encode($extra, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}
@endif
@endif @endforeach
{{ $logs->links() }}
@endif