{{-- custom activity log changes view --}} @php $values = $column['value'] ?? data_get($entry, $column['name']); $old = isset($values['old']); @endphp @if($old) @endif @foreach(($values['attributes'] ?? []) as $key => $new) @if(!in_array($key, ['id', 'deleted_at'])) @if($old) @endif @endif @endforeach
{{ ucfirst(__('backpack.activity-log::activity_log.key')) }}{{ ucfirst(__('backpack.activity-log::activity_log.previous_value')) }}{{ ucfirst(__('backpack.activity-log::activity_log.new_value')) }}
{{ str_replace('_', ' ', ucfirst(__($key))) }} @if (is_array($values['old'][$key]))
    @foreach ($values['old'][$key] as $attribute => $value)
  • {{ $attribute }}: {{ $value }}
  • @endforeach
@else {{ $values['old'][$key] }} @endif
@if (is_array($new))
    @foreach ($new as $attribute => $value)
  • {{ $attribute }}: {{ $value }}
  • @endforeach
@else {{ $new }} @endif