@if($logs->count() > 0)
| Date & Time | User | Action | Target | Description | IP Address | Details |
|---|---|---|---|---|---|---|
| {{ $log->created_at->format('d M Y H:i:s') }} | @if($log->headOfficeUser) {{ $log->headOfficeUser->user->name ?? 'Unknown' }} @else System @endif | @php $badgeClass = match($log->action_type) { 'profile_created' => 'badge-success', 'profile_updated' => 'badge-info', 'user_updated' => 'badge-primary', 'user_access_rights_updated' => 'badge-warning', default => 'badge-secondary' }; @endphp {{ ucwords(str_replace('_', ' ', $log->action_type)) }} | @if($log->target_type && $log->target_id) {{ ucfirst($log->target_type) }} #{{ $log->target_id }} @else - @endif | {{ $log->description ?? '-' }} | {{ $log->ip_address ?? '-' }} | @if($log->old_values || $log->new_values) @else - @endif |