@extends('layouts.app') @section('content')
Track user activities and system changes.
| Time | User | Description | Subject | Changes |
|---|---|---|---|---|
| {{ $activity->created_at->format('Y-m-d H:i:s') }} | @if($activity->causer) {{ $activity->causer->name }} @else System @endif | {{ ucfirst($activity->description) }} | @if($activity->subject_type) {{ class_basename($activity->subject_type) }} #{{ $activity->subject_id }} @else - @endif |
@if($activity->properties && $activity->properties->has('attributes'))
Old
New
@foreach($activity->properties['attributes'] as $key => $newValue)
@php
$oldValue = $activity->properties['old'][$key] ?? '-';
@endphp
{{ $key }}: {{ is_array($oldValue) ? json_encode($oldValue) : $oldValue }}
{{ $key }}: {{ is_array($newValue) ? json_encode($newValue) : $newValue }}
@endforeach
|
| No activities recorded yet. | ||||