@if ($history->user->id) {{ $history->user->name }} @else {{ trans('plugins/audit-log::history.system') }} @endif @if (Lang::has('plugins/audit-log::history.' . $history->action)) {{ trans('plugins/audit-log::history.' . $history->action) }} @else {{ $history->action }} @endif @if ($history->module) @if (Lang::has('plugins/audit-log::history.' . $history->module)) {{ trans('plugins/audit-log::history.' . $history->module) }} @else {{ $history->module }} @endif @endif @if ($history->reference_name) @if (empty($history->user) || $history->user->name != $history->reference_name) "{{ Str::limit($history->reference_name, 40) }}" @endif @endif . {{ $history->created_at->diffForHumans() }} ({{ $history->ip_address }})