@extends('layouts.app') @section('title', '감사 로그') @section('content')

감사 로그

재고 변동 이력을 추적합니다
전체 기록
{{ number_format($stats['total']) }}
오늘 기록
{{ number_format($stats['today']) }}
@foreach($stats['by_action'] as $action => $count)
{{ $actions[$action] ?? $action }}
{{ number_format($count) }}
@endforeach
초기화
@forelse($logs as $log) @empty @endforelse
시간 액션 LOT 번호 수량 사유 참조 테넌트 수행자
{{ $log->created_at->format('m/d H:i:s') }} @php $actionColors = [ 'stock_increase' => 'bg-green-100 text-green-800', 'stock_decrease' => 'bg-red-100 text-red-800', 'stock_reserve' => 'bg-yellow-100 text-yellow-800', 'stock_release' => 'bg-blue-100 text-blue-800', ]; @endphp {{ $log->action_label }} {{ $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 }} @else - @endif @if($log->tenant) {{ Str::limit($log->tenant->company_name, 10) }} @else - @endif @if($log->actor) {{ $log->actor->name ?? $log->actor->email }} @else 시스템 @endif
감사 로그가 없습니다.
@if($logs->hasPages())
{{ $logs->links() }}
@endif
@endsection