{{ $activity->action_name }}
{{ $activity->created_at->format('Y-m-d H:i:s') }}
{{ $activity->performed_by }}
{{ $activity->ip_address ?? 'غير معروف' }}
{{ $activity->description }}
@if($activity->action == 'update' && $activity->old_values && $activity->new_values)
التغييرات
| الحقل |
القيمة القديمة |
القيمة الجديدة |
@foreach($activity->new_values as $field => $newValue)
@if($field != 'updated_at')
| {{ $field }} |
{{ $activity->old_values[$field] ?? '-' }} |
{{ $newValue ?? '-' }} |
@endif
@endforeach
@endif
@if($activity->action == 'create' && $activity->new_values)
البيانات المضافة
| الحقل |
القيمة |
@foreach($activity->new_values as $field => $value)
@if(!in_array($field, ['created_at', 'updated_at', 'id']))
| {{ $field }} |
{{ $value ?? '-' }} |
@endif
@endforeach
@endif
@if($activity->action == 'delete' && $activity->old_values)
البيانات المحذوفة
| الحقل |
القيمة |
@foreach($activity->old_values as $field => $value)
@if(!in_array($field, ['created_at', 'updated_at', 'id']))
| {{ $field }} |
{{ $value ?? '-' }} |
@endif
@endforeach
@endif