@extends('layouts.app') @section('title', 'Activity Logs - Admin Panel') @section('page_title', 'Activity & Interaction Logs') @section('styles') @endsection @section('content')
Activity & Interaction Logs
Total Logs: {{ $logs->total() }}
@forelse($logs as $log) @empty @endforelse
ID Log Type User / Admin Action Screen / Endpoint Target / Element IP Address Payload Preview Logged At Details
{{ $log->id }} @if($log->log_type === 'app_interaction') App User @else Admin @endif {{ $log->user_name }} ID: {{ $log->user_id ?? 'N/A' }} {{ $log->action }} {{ $log->screen ?? '-' }} {{ $log->element ?? '-' }} {{ $log->ip_address }} {{ is_array($log->payload) ? json_encode($log->payload) : ($log->payload ?? '{}') }}
No activity logs found.
{{ $logs->links() }}
@endsection @section('scripts') @endsection