@extends('admin.layouts.app') @section('title', 'Activity Log Details') @section('content')

Activity Log Details

View detailed information about this activity

Back to Logs
User
{{ substr($activityLog->admin->name ?? 'U', 0, 2) }}
{{ $activityLog->admin->name ?? '-' }}
Module {{ $activityLog->module }}
Action @if($activityLog->action == 'Create') Create @elseif($activityLog->action == 'Update') Update @elseif($activityLog->action == 'Delete') Delete @else {{ $activityLog->action }} @endif
Record Name {{ $activityLog->record_name }}
Description {{ $activityLog->description }}
IP Address {{ $activityLog->ip_address }}
Method {{ $activityLog->method }}
URL {{ $activityLog->url }}
Browser {{ $activityLog->user_agent }}
Created At {{ $activityLog->created_at->format('d M Y h:i A') }}

Data Comparison
@if($activityLog->action == 'Update')
@forelse($activityLog->new_data as $key => $value) @php $oldValue = $activityLog->old_data[$key] ?? ''; @endphp @if($oldValue != $value) @endif @empty @endforelse
Field Old Value New Value
{{ ucwords(str_replace('_', ' ', $key)) }} {{ is_array($oldValue) ? json_encode($oldValue) : ($oldValue ?: '') }} {{ is_array($value) ? json_encode($value) : ($value ?: '') }}
No Changes Detected

No field changes were found in this update.

@else
Old Data
{{ json_encode($activityLog->old_data, JSON_PRETTY_PRINT) }}
New Data
{{ json_encode($activityLog->new_data, JSON_PRETTY_PRINT) }}
@endif
@endsection