@extends('layouts.app') @section('title', 'Corporate Audit Trail') @section('content')

Corporate Audit Trail

@forelse ($rows as $a) @empty @endforelse
Timestamp User Action Scheme Subject Old Value New Value Reason IP
{{ $a->created_at?->format('d M Y H:i:s') }} {{ $a->user?->name ?? '—' }} {{ str_replace('_', ' ', $a->action) }} {{ $a->account?->code ?? '—' }} {{ $a->reference_type ? class_basename($a->reference_type) : '' }} @if ($a->reference_id) #{{ $a->reference_id }} @endif {{ is_array($a->old_value) ? collect($a->old_value)->take(2)->map(fn($v,$k)=>"$k=$v")->implode(', ') : ($a->old_value ?? '—') }} {{ is_array($a->new_value) ? collect($a->new_value)->take(2)->map(fn($v,$k)=>"$k=$v")->implode(', ') : ($a->new_value ?? '—') }} {{ $a->reason ?? '—' }} {{ $a->ip_address ?? '—' }}
No audit entries found.
@if (method_exists($rows, 'links'))
{{ $rows->withQueryString()->links() }}
@endif
@endsection