Voltar ao Histórico

Versão {{ $history1->version_number }}

Ação: {{ ucfirst($history1->action) }}
Usuário: {{ $history1->user?->name ?? 'N/A' }}
Data: {{ $history1->created_at->format('d/m/Y H:i:s') }}
@if ($history1->change_description)
Descrição: {{ $history1->change_description }}
@endif

Versão {{ $history2->version_number }}

Ação: {{ ucfirst($history2->action) }}
Usuário: {{ $history2->user?->name ?? 'N/A' }}
Data: {{ $history2->created_at->format('d/m/Y H:i:s') }}
@if ($history2->change_description)
Descrição: {{ $history2->change_description }}
@endif
@if (count($differences) > 0)

Mudanças Detectadas

@foreach ($differences as $field => $change)

{{ $field }}

@if ($change['action'] === 'removed')
Campo removido
@else {{ $change['old'] ?? 'Nenhum' }} @endif
@if ($change['action'] === 'added')
Campo adicionado
@else {{ $change['new'] ?? 'Nenhum' }} @endif
@endforeach
@else

Nenhuma mudança detectada entre essas versões

@endif

Dados Completos - Versão {{ $history1->version_number }} (JSON)

{{ json_encode($history1->data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}

Dados Completos - Versão {{ $history2->version_number }} (JSON)

{{ json_encode($history2->data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}