@php $f = $filters ?? []; $rangeKey = $f['range']['key'] ?? '7d'; $scope = $f['scope'] ?? 'me'; $cat = $f['cat'] ?? 'all'; $bucketCur = $f['bucket'] ?? 'daily'; $qCur = $f['q'] ?? ''; $deltaPct = $stats['deltaPct'] ?? 0; $deltaCls = $deltaPct >= 0 ? 'text-wa-deep' : 'text-accent-coral'; $deltaSign = $deltaPct > 0 ? '+' : ''; $rangeLabels = ['24h' => 'Last 24 hours', '7d' => 'Last 7 days', '30d' => 'Last 30 days', '90d' => 'Last 90 days']; @endphp
{{ __('More / Activity Log') }}
{{ __('Activity') }} {{ __('log') }}
{{ __('Export CSV') }}
{{ __('Total events') }} {{ $deltaSign }}{{ $deltaPct }}% {{ __('vs prev') }}
{{ number_format($stats['total']) }} {{ $rangeKey }}
{{ __('Sign-ins') }} {{ $stats['total'] ? round(($stats['logins'] / $stats['total']) * 100) : 0 }}%
{{ number_format($stats['logins']) }} {{ __('auth') }}
{{ __('Writes') }} {{ $stats['total'] ? round(($stats['writes'] / $stats['total']) * 100) : 0 }}%
{{ number_format($stats['writes']) }} {{ __('create / update') }}
{{ __('Reads / other') }} {{ $stats['total'] ? round(($stats['reads'] / $stats['total']) * 100) : 0 }}%
{{ number_format($stats['reads']) }} {{ __('passive') }}
{{ __('Unique IPs') }} {{ __('distinct') }}
{{ number_format($stats['uniqueIps']) }} {{ __('addresses') }}
{{ __('Volume') }}

{{ __('Events over time') }}

@foreach (['daily' => 'Daily', 'hourly' => 'Hourly', 'weekly' => 'Weekly'] as $key => $label) @endforeach
{{ __('Event split') }}

{{ __('Auth vs writes vs reads') }}

{{ __('Auth') }}{{ number_format($categoryDonut['auth']) }}
{{ __('Writes') }}{{ number_format($categoryDonut['writes']) }}
{{ __('Reads / other') }}{{ number_format($categoryDonut['reads']) }}
@foreach (['me' => 'My activity', 'workspace' => 'Workspace'] as $k => $label) @endforeach
@include('user.activity-log._rows', ['rows' => $rows])
{{ __('When') }} {{ __('Action') }} {{ __('Category') }} {{ __('Actor') }} {{ __('Subject') }} {{ __('IP') }} {{ __('Open') }}
{{ __('Top actors') }}

{{ __('Most active users') }} ({{ $rangeKey }})

{{ __('View members') }}
@forelse ($topActors as $a)
{{ $a['initials'] }}
{{ $a['name'] }}
{{ $a['count'] }} {{ __('events · last') }} {{ $a['lastAt'] }}
#{{ $a['id'] }}
@empty @include('user.partials.empty-state', [ 'class' => 'col-span-2', 'message' => 'No active users found in this window. As soon as someone signs in or works in the workspace, they will appear here.', 'resetHref' => url('/activity-log'), ]) @endforelse
{{ __('By category') }}

{{ __('Mix this window') }}