@extends('layouts.masterbeta') @section('title', 'Click ERP - System Activity Logs') @section('breadcrumbs') Activity Logs @endsection @section('content')

System Audit Trail

Monitor user actions, data modifications, and security events.

@forelse($logs as $log) @empty @endforelse
Timestamp User Action Entity Context Details
{{ $log->created_at->format('d M Y') }}
{{ $log->created_at->format('h:i:s A') }}
{{ $log->user->name ?? 'System/Guest' }}
{{ $log->ip_address }}
@php $badgeColor = match($log->action) { 'created' => 'success', 'updated' => 'primary', 'deleted' => 'danger', default => 'secondary' }; @endphp {{ $log->action }}
{{ class_basename($log->loggable_type) }} #{{ $log->loggable_id }}
@if(!empty($log->old_data) || !empty($log->new_data)) @else No Context @endif
No activity records found.
@if($logs->hasPages()) @endif
@endsection @push('modals') @endpush @push('scripts') @endpush