@extends('layouts.admin') @section('content')
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() }}
| Action | Count | Percentage | Bar |
|---|---|---|---|
| {{ ucfirst(str_replace('_', ' ', $action->action)) }} | {{ number_format($action->count) }} | {{ number_format(($action->count / $stats['total_logs']) * 100, 1) }}% |
|
| User | Activity Count | Role | Actions |
|---|---|---|---|
|
@if($user->user)
{{ substr($user->user->name, 0, 1) }}
{{ $user->user->name }}
{{ $user->user->email }}
|
{{ 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. | |||