@extends('painel.layouts.dashboard')
@section('title', 'Auditoria - Detalhes')
@section('title-dashboard')
Auditoria - Detalhes do registro #{{ $registro->id }}
@endsection
@section('pg-home')
@endsection
@section('content')
@parent
| Data / Hora | {{ date('d/m/Y H:i:s', strtotime($registro->created_at)) }} |
| Usuário |
@if($registro->causer_id)
{{ $registro->usuario_nome ?: 'Usuário #'.$registro->causer_id }} ({{ $registro->usuario_email }})
@if($registro->usuario_apagado) APAGADO @endif
@else
Sem usuário (API / sistema)
@endif
|
| Ação | {{ $acoes[$registro->description][0] ?? $registro->description }} |
| Módulo / Tabela | {{ class_basename($registro->subject_type) }} ({{ $propriedades['tabela'] ?? '' }}) |
| Código do registro | {{ $registro->subject_id }} |
| IP | {{ $propriedades['ip'] ?? '' }} |
| Origem | {{ $propriedades['url'] ?? '' }} |
| Campo |
@if($registro->description === 'updated')Valor anterior | @endif
{{ $registro->description === 'updated' ? 'Novo valor' : 'Valor' }} |
@forelse($novos as $campo => $valor)
| {{ $campo }} |
@if($registro->description === 'updated')
{{ is_scalar($antigos[$campo] ?? null) ? $antigos[$campo] : json_encode($antigos[$campo] ?? null) }} |
@endif
{{ is_scalar($valor) ? $valor : json_encode($valor) }} |
@empty
| Sem dados. |
@endforelse
Voltar
@endsection