action, [Action::ShareLinkDownloaded, Action::PublicFileDownloaded], true); return [ 'id' => $entry->id, 'created_at' => $entry->created_at->toIso8601String(), 'actor_name' => match ($entry->action) { Action::ShareLinkDownloaded => __('Public link'), Action::PublicFileDownloaded => __('Public listing'), default => $entry->actor_name ?? __('(deleted account)'), }, 'actor_type' => $isPublic ? null : $entry->actor_type, 'ip_address' => $entry->ip_address, ]; } }