@extends('layouts.layout-horizontal') @section('title', 'Activity Details') @section('content')
{{ $activity->created_at->format('d-M-Y h:i:s A') }}
{{ $activity->user->name ?? 'Unknown' }}
@if($activity->action === 'created') Created @elseif($activity->action === 'updated') Updated @elseif($activity->action === 'deleted') Deleted @else {{ ucfirst($activity->action) }} @endif
{{ $activity->model_label }} (ID: {{ $activity->model_id }})
{{ $activity->description }}
{{ $activity->company->name ?? '-' }}
{{ $activity->ip_address ?? '-' }}
| Field | Old Value | New Value |
|---|---|---|
| {{ ucwords(str_replace('_', ' ', $key)) }} | {{ is_array($oldValue) ? json_encode($oldValue) : $oldValue }} | {{ is_array($activity->new_values[$key]) ? json_encode($activity->new_values[$key]) : $activity->new_values[$key] }} |
| Field | Value |
|---|---|
| {{ ucwords(str_replace('_', ' ', $key)) }} |
@if(is_array($value))
{{ json_encode($value) }}
@elseif(is_null($value))
null
@else
{{ $value }}
@endif
|
| Field | Value |
|---|---|
| {{ ucwords(str_replace('_', ' ', $key)) }} |
@if(is_array($value))
{{ json_encode($value) }}
@elseif(is_null($value))
null
@else
{{ $value }}
@endif
|