@php $audits = $deviation->auditTrails()->limit(50)->get(); @endphp @if($audits->isEmpty())
No audit entries recorded.
@else| Date | User | Field | Old Value | New Value | Reason |
|---|---|---|---|---|---|
| {{ $t->created_at?->format('M j, Y H:i') }} | {{ $t->changer?->name ?? 'System' }} | {{ $t->field_name }} |
{{ Str::limit($t->old_value, 60) ?: '—' }} | {{ Str::limit($t->new_value, 60) ?: '—' }} | {{ Str::limit($t->change_reason, 80) }} |