@props(['log'])
User: {{ $log->causer->name ?? 'System' }}
Action: {{ str_replace('_', ' ', ucfirst($log->description)) }}
Model: {{ class_basename($log->subject_type) }}
IP Address: {{ $log->properties['ip_address'] ?? 'N/A' }}
Date: {{ $log->created_at->format('Y-m-d H:i:s') }}
Customer ID: {{ $log->subject->id ?? 'N/A' }}
Full Name: {{ $log->subject->full_name ?? 'N/A' }}
Email: {{ $log->subject->email ?? 'N/A' }}
Phone: {{ $log->subject->phone_number ?? 'N/A' }}
Status: {{ ucfirst($log->subject->status ?? 'N/A') }}
Verification: @if($log->subject->verified_at) Verified ({{ $log->subject->verified_at->format('Y-m-d H:i:s') }}) @else Not Verified @endif
@elseCustomer information not available
@endifFirst Name: {{ $oldValues['first_name'] ?? 'N/A' }}
Last Name: {{ $oldValues['last_name'] ?? 'N/A' }}
Email: {{ $oldValues['email'] ?? 'N/A' }}
Phone: {{ $oldValues['phone_number'] ?? 'N/A' }}
Status: {{ ucfirst($oldValues['status'] ?? 'N/A') }}
Verification: @if(isset($oldValues['verified_at'])) Verified ({{ $oldValues['verified_at'] }}) @else Not Verified @endif
First Name: {{ $newValues['first_name'] ?? 'N/A' }}
Last Name: {{ $newValues['last_name'] ?? 'N/A' }}
Email: {{ $newValues['email'] ?? 'N/A' }}
Phone: {{ $newValues['phone_number'] ?? 'N/A' }}
Status: {{ ucfirst($newValues['status'] ?? 'N/A') }}
Verification: @if(isset($newValues['verified_at'])) Verified ({{ $newValues['verified_at'] }}) @else Not Verified @endif
First Name: {{ $newValues['first_name'] ?? 'N/A' }}
Last Name: {{ $newValues['last_name'] ?? 'N/A' }}
Email: {{ $newValues['email'] ?? 'N/A' }}
Phone: {{ $newValues['phone_number'] ?? 'N/A' }}
Status: {{ ucfirst($newValues['status'] ?? 'N/A') }}
Created By: {{ $log->causer->name ?? 'System' }}
Verification Status: Not Verified
Verified At: N/A
Verification Status: Verified
Verified At: {{ $log->properties['new_values']['verified_at'] ?? 'N/A' }}
Verified By: {{ $log->causer->name ?? 'System' }}
Status: {{ ucfirst($oldValues['status'] ?? 'N/A') }}
Changed At: {{ $log->created_at->format('Y-m-d H:i:s') }}
Status: {{ ucfirst($newValues['status'] ?? 'N/A') }}
Changed By: {{ $log->causer->name ?? 'System' }}
Changed At: {{ $log->created_at->format('Y-m-d H:i:s') }}