@extends('layouts.admin') @section('content')

Audit Log Statistics

Back to Logs

Total Logs

{{ number_format($stats['total_logs']) }}

Today

{{ number_format($stats['today_logs']) }}

This Week

{{ number_format($stats['this_week_logs']) }}

Action Types

{{ $stats['action_stats']->count() }}

Daily Activity (Last 30 Days)

Action Distribution

Action Statistics

@foreach($actionDistribution as $action) @endforeach
Action Count Percentage Bar
{{ ucfirst(str_replace('_', ' ', $action->action)) }} {{ number_format($action->count) }} {{ number_format(($action->count / $stats['total_logs']) * 100, 1) }}%

Most Active Users

@forelse($topUsers as $user) @empty @endforelse
User Activity Count Role Actions
@if($user->user)
{{ substr($user->user->name, 0, 1) }}
{{ $user->user->name }}
{{ $user->user->email }}
@else Unknown User @endif
{{ number_format($user->activity_count) }} @if($user->user) {{ ucfirst($user->user->role) }} @else N/A @endif @if($user->user) View Logs @else N/A @endif
No user activity data available.
@endsection