@extends('admin.layout') @section('title', 'Detail Activity Log') @section('content')
Detail Activity Log #{{ $activityLog->id }}
Kembali
Informasi Dasar
ID: {{ $activityLog->id }}
User: @if($activityLog->user) {{ $activityLog->user->name }}
{{ $activityLog->user->email }} @else System @endif
Activity Type: {{ ucfirst(str_replace('_', ' ', $activityLog->activity_type)) }}
Description: {{ $activityLog->description }}
Date & Time: {{ $activityLog->created_at->format('d/m/Y H:i:s') }}
{{ $activityLog->created_at->diffForHumans() }}
Informasi Teknis
Subject Type: @if($activityLog->subject_type) {{ class_basename($activityLog->subject_type) }} @else - @endif
Subject ID: @if($activityLog->subject_id) {{ $activityLog->subject_id }} @else - @endif
IP Address: {{ $activityLog->ip_address ?? '-' }}
User Agent:
{{ $activityLog->user_agent ?? '-' }}
URL:
{{ $activityLog->url ?? '-' }}
Method: {{ $activityLog->method ?? '-' }}
@if($activityLog->properties && !empty($activityLog->properties))
Data Properties
{{ json_encode($activityLog->properties, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}
@endif @if($activityLog->subject_type && $activityLog->subject_id)
Log Aktivitas Terkait
@php $relatedLogs = \App\Models\ActivityLog::where('subject_type', $activityLog->subject_type) ->where('subject_id', $activityLog->subject_id) ->where('id', '!=', $activityLog->id) ->with('user') ->latest() ->limit(10) ->get(); @endphp @if($relatedLogs->count() > 0)
@foreach($relatedLogs as $relatedLog) @endforeach
ID User Activity Type Description Date Actions
{{ $relatedLog->id }} @if($relatedLog->user) {{ $relatedLog->user->name }} @else System @endif {{ ucfirst(str_replace('_', ' ', $relatedLog->activity_type)) }}
{{ $relatedLog->description }}
{{ $relatedLog->created_at->format('d/m/Y H:i:s') }}
@else

Tidak ada log aktivitas terkait yang ditemukan.

@endif
@endif
@endsection @push('styles') @endpush