{{ __('Inventory Audit Log') }}

{{ __('Inventory Audit Log') }}

{{ __('Every create, edit, delete, and CSV import across parts, suppliers, mechanics, stock movements, and trips.') }}

@if (array_filter($filters ?? [])) {{ __('Clear') }} @endif
@if ($logs->isEmpty())

{{ __('No matching audit entries.') }}

@else
@foreach ($logs as $log) @if ($log->payload) @endif @endforeach
{{ __('When') }} {{ __('User') }} {{ __('Action') }} {{ __('Type') }} {{ __('Record') }}
{{ $log->created_at->format('M j, Y g:ia') }} {{ $log->user?->name ?: __('System') }} {{ $log->actionLabel() }} {{ $log->auditableType() }} {{ $log->subjectLabel() }} @if ($log->payload) @endif
@foreach ($log->payload as $field => $value)
{{ $field }}
{{ is_scalar($value) ? $value : json_encode($value) }}
@endforeach
@if ($log->note)

{{ $log->note }}

@endif
{{ $logs->links() }}
@endif