@php $logs = $logs ?? $model->auditHistory()->with('user')->limit(50)->get(); @endphp @if($logs->count() > 0)
{{ $field }}:
{{ Str::limit($log->old_values_array[$field] ?? 'null', 50) }}
{{ Str::limit($newValue ?? 'null', 50) }}
No audit history available
@endif