Limpar filtros
@if($logs->isEmpty())@else
@foreach($logs as $log)
{{ $log->action }}{{ $log->created_at->format('d/m/Y H:i') }}

{{ $log->user?->name ?? 'Sistema' }}

{{ $log->ip_address ?? 'IP não informado' }}

Ver detalhes
@endforeach
{{ $logs->links() }}
@endif
@if($selectedLog)
Ação
{{ $selectedLog->action }}
Data
{{ $selectedLog->created_at->format('d/m/Y H:i:s') }}
Responsável
{{ $selectedLog->user?->name ?? 'Sistema' }}
Origem
{{ $selectedLog->ip_address ?? '—' }} · {{ $selectedLog->user_agent ?? 'Navegador não informado' }}

Valores anteriores

{{ json_encode($selectedLog->old_values, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) ?: 'Sem valores' }}

Valores posteriores

{{ json_encode($selectedLog->new_values, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) ?: 'Sem valores' }}
@endif