@extends('layouts.app') @section('title', '감사 로그 상세 #' . $log->id) @section('content')

감사 로그 상세 #{{ $log->id }}

{{ $log->table_name }} / Row {{ $log->row_id }}

이 레코드 전체 이력 롤백 미리보기 목록
@if(session('success'))
{{ session('success') }}
@endif

기본 정보

DML 타입
{{ $log->dml_type }}
테넌트 ID
{{ $log->tenant_id ?? '-' }}
DB 사용자
{{ $log->db_user ?? '-' }}
일시
{{ $log->created_at->format('Y-m-d H:i:s') }}
@if($log->actor_id)
Actor ID
{{ $log->actor_id }}
@endif @if($log->session_info)
IP
{{ $log->session_info['ip'] ?? '-' }}
Route
{{ $log->session_info['route'] ?? '-' }}
@endif @if($log->changed_columns)
변경 컬럼
@foreach($log->changed_columns as $col) {{ $col }} @endforeach
@endif

데이터 변경 내역

@foreach($diff as $d) @endforeach
컬럼 이전 값 (OLD) 이후 값 (NEW)
{{ $d['column'] }} @if($d['changed']) * @endif @if($d['old'] === null) NULL @elseif(is_array($d['old']) || is_object($d['old']))
{{ json_encode($d['old'], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}
@else {{ Str::limit((string) $d['old'], 500) }} @endif
@if($d['new'] === null) NULL @elseif(is_array($d['new']) || is_object($d['new']))
{{ json_encode($d['new'], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}
@else {{ Str::limit((string) $d['new'], 500) }} @endif
@endsection