Date/Time:
{{ $log->created_at->format('M d, Y H:i:s') }}
User:
{{ $log->user->name ?? 'System' }}
Action:
{{ ucfirst($log->action) }}
Model:
{{ class_basename($log->auditable_type) }}
IP Address:
{{ $log->ip_address }}
@if($log->device_type)
Device:
{{ ucfirst($log->device_type) }}
@endif
@if($log->browser_name)
Browser:
{{ $log->browser_name }}
@endif
@if($log->tags)
Tags:
@foreach($log->tags as $tag)
{{ $tag }}
@endforeach
@endif
@if($log->old_values)
Old Values:
{{ json_encode($log->old_values, JSON_PRETTY_PRINT) }}
@endif
@if($log->new_values)
New Values:
{{ json_encode($log->new_values, JSON_PRETTY_PRINT) }}
@endif