@extends('layouts.app') @section('title', '감사 로그 상세') @section('content')
{{ $log->target_type }}
#{{ $log->target_id }}
{{ $log->tenant?->company_name ?? '-' }}
{{ $log->lot_no ?? '-' }}
@if($log->qty_change > 0) +{{ number_format($log->qty_change, 2) }} @elseif($log->qty_change < 0) {{ number_format($log->qty_change, 2) }} @else - @endif
{{ $log->reason_label ?? '-' }}
@if($log->reference_id) #{{ $log->reference_id }} @if($log->reference_type) ({{ $log->reference_type }}) @endif @else - @endif
{{ $log->actor?->name ?? '시스템' }}
{{ $log->actor?->email ?? '-' }}
{{ $log->ip ?? '-' }}
{{ Str::limit($log->ua, 50) ?? '-' }}
{{ json_encode($log->before, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) ?: '(데이터 없음)' }}
{{ json_encode($log->after, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) ?: '(데이터 없음)' }}
| 필드 | 변경 전 | 변경 후 |
|---|---|---|
| {{ $key }} | @if(is_array($beforeVal)) {{ json_encode($beforeVal, JSON_UNESCAPED_UNICODE) }} @else {{ $beforeVal ?? '-' }} @endif | @if(is_array($afterVal)) {{ json_encode($afterVal, JSON_UNESCAPED_UNICODE) }} @else {{ $afterVal ?? '-' }} @endif |