@if (isset($activity['properties']))
@if (json_decode($activity['properties']))
@php
$properties = json_decode($activity['properties']);
@endphp
New
@foreach ($properties->attributes as $key => $field)
@if ($field)
@if (is_array($field))
-
{{ $key }}
@foreach ($field as $f)
@if($f != '')
- {{ $f }}
@else
- null
@endif
@endforeach
@else
- {{ $key . ' - ' . $field }}
@endif
@endif
@endforeach
@if (isset($properties->old))
Old
@foreach ($properties->old as $key => $field)
{{-- - {{ $key . ' - ' . ($field === null ? 'NULL' : $field) }}
--}}
@if ($field)
@if (is_array($field))
-
{{ $key }}
@foreach ($field as $f)
@if($f != '')
- {{ $f }}
@else
- null
@endif
@endforeach
@else
- {{ $key . ' - ' . ($field === null ? 'NULL' : $field) }}
@endif
@endif
@endforeach
@endif
@endif
@endif