{{-- card header --}}
{{ __('app.history') }} @if (count($activities) > 0) @endif
{{-- card body --}}
@foreach ($activities as $activity)
{{ $activity['created_at'] . ' : ' . $activity['event'] }}
{{ $activity['causer'] ? $activity['causer'] : '' }}

@php $headers = [['index' => 'attribute', 'label' => __('app.attribute')], ['index' => 'old', 'label' => __('app.old')], ['index' => 'new', 'label' => __('app.new')]]; $rows = collect($activity['new']) ->map(function ($value, $key) use ($activity) { return [ 'attribute' => $key, 'old' => $activity['old'][$key] ?? null, 'new' => $value, ]; }) ->toArray(); @endphp

@endforeach