@if (class_exists($history->user_type) && $history->user) {{ $history->user_name }} @else {{ trans('plugins/audit-log::history.system') }} @endif
@if (class_exists($history->user_type) && $user = $history->user) {{ $history->user_name }} {{ $history->user_type_label }} @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 != 'user' || (class_exists($history->user_type) && empty($history->user)) || (class_exists($history->user_type) && $history->user->id != Auth::guard()->id())) @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 && $history->user_name != $history->reference_name) "{{ Str::limit($history->reference_name, 40) }}" @endif
{{ $history->created_at->diffForHumans() }} ({{ $history->ip_address }})