++ fix: Show causer name from activity properties if not available in relation

This commit is contained in:
2026-04-07 15:09:49 +00:00
parent be1ac25047
commit aac13522e5
3 changed files with 221 additions and 41 deletions

View File

@@ -40,7 +40,7 @@
@forelse($activities as $activity)
<tr class="hover:bg-gray-50">
<td class="px-3 py-2 text-xs text-gray-500 whitespace-nowrap">{{ $activity->created_at->format('d/m/Y H:i:s') }}</td>
<td class="px-3 py-2 text-xs">{{ $activity->causer?->name ?? 'Sistema' }}</td>
<td class="px-3 py-2 text-xs">{{ $activity->causer?->name ?? data_get($activity->properties, 'causer_name') ?? 'Sistema' }}</td>
<td class="px-3 py-2">
<span class="inline-flex px-2 py-0.5 text-xs font-medium rounded-full
{{ match($activity->description) {