@php $audits = $deviation->auditTrails()->limit(50)->get(); @endphp @if($audits->isEmpty())

No audit entries recorded.

@else
@foreach($audits as $t) @endforeach
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) }}
Showing last 50 entries. @endif