@extends('layout.app') @push('styles') @endpush @section('content')
Change History: {{ $user->name }} ({{ $user->email }})
Back to Users
@forelse($changeHistory as $item) @empty @endforelse
Date Source Entity Changes
{{ $item->created_at }} {{ $item->source }} @if($item->source_type === 'client_edit_log') {{ $item->entity }} @else {{ $item->entity }} @endif @if(!empty($item->changes)) @foreach($item->changes as $key => $diff) @php $o = trim($diff['old'] ?? ''); $n = trim($diff['new'] ?? ''); @endphp @if($o !== $n && ($o !== '' || $n !== ''))
{{ ucwords(str_replace('_',' ',$key)) }}
Old: {{ $diff['old'] ?? '—' }}
New: {{ $diff['new'] ?? '—' }}
@endif @endforeach @else — @endif
No change history found.
@if($changeHistory->hasPages())
Showing {{ $changeHistory->firstItem() }}–{{ $changeHistory->lastItem() }} of {{ $changeHistory->total() }}
{{ $changeHistory->withQueryString()->links() }}
@endif
@endsection @section('ajax') @endsection