Voltar ao Histórico

Informações da Versão

v{{ $history->version_number }}

{{ $modelName }}

#{{ $modelId }}

{{ ucfirst($history->action) }}

{{ $history->user?->name ?? 'N/A' }}

{{ $history->user?->email ?? '' }}

{{ $history->created_at->format('d/m/Y H:i:s') }}

{{ $history->created_at->diffForHumans() }}

@if ($history->change_description)

{{ $history->change_description }}

@endif
@if ($previousHistory && count($changes) > 0)

Mudanças em relação à Versão Anterior

@foreach ($changes 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
@endif

Dados Completos (JSON)

{{ json_encode($history->data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}
@if ($previousHistory) Versão Anterior Comparar com Anterior @endif