@extends('layouts.app') @section('title', 'Corporate Audit Trail') @section('content')
| 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. | ||||||||