Lịch sử theo dõi công nợ
@if ($errors->any())
@foreach ($errors->all() as $error)

{{ $error }}

@endforeach

@endif @if(Session::has('error'))
{{Session::get('error')}}
@endif

Nhật ký Thay đổi Hệ thống

{{-- BỘ LỌC --}}
Tìm kiếm & Lọc
{{-- BẢNG DỮ LIỆU --}}
@forelse ($audits as $audit) @empty @endforelse
Thời gian Người dùng Hành động Đối tượng Giá trị cũ Giá trị mới Lý do
{{ $audit->created_at->format('d/m/Y H:i:s') }} {{ $audit->user->name ?? 'Hệ thống/Không rõ' }} @if ($audit->event == 'created') Tạo mới @elseif ($audit->event == 'updated') Cập nhật @elseif ($audit->event == 'deleted') Xóa @else {{ $audit->event }} @endif {{ class_basename($audit->auditable_type) }} ID: {{ $audit->auditable_id }}
@json($audit->old_values, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE))
@json($audit->new_values, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE)
@php // Decode chuỗi JSON trong cột 'reason' thành một mảng PHP $reasonData = json_decode($audit->reason, true); @endphp {{-- Lấy giá trị từ key 'reason' trong mảng đó --}} {{ $reasonData['reason'] ?? '' }}
Không tìm thấy lịch sử thay đổi nào.
{{ $audits->links() }}