@if (!$loop->last)
@endif
@php
$colorClass = match ($log->action) {
'Create' => 'bg-emerald-100 text-emerald-600 ring-emerald-50',
'Delete' => 'bg-red-100 text-red-600 ring-red-50',
'Update' => 'bg-amber-100 text-amber-600 ring-amber-50',
'Login' => 'bg-blue-50 text-blue-500 ring-blue-50',
default => 'bg-slate-100 text-slate-500 ring-slate-50',
};
$iconClass = match ($log->action) {
'Create' => 'ph-plus-circle',
'Delete' => 'ph-trash',
'Update' => 'ph-pencil-simple',
'Login' => 'ph-sign-in',
default => 'ph-activity',
};
@endphp
{{ $log->user->name ?? 'System' }}
•
{{ $log->description }}
{{ $log->created_at->diffForHumans() }}