@extends('layouts.app') @section('title', 'Dashboard auditoria') @section('page-title', 'Dashboard de auditoria') @section('page-subtitle', 'Visão consolidada de eventos e atividade') @section('content')
Ver todos os logs Exportar CSV

Total de logs

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

Críticos hoje

{{ $stats['critical_logs_today'] }}

Acessos (7 dias)

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

Exportações (30 dias)

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

Eventos críticos recentes

Top usuários (30 dias)

    @forelse($topUsers as $row)
  • {{ $row->user?->name ?? 'Usuário #'.$row->user_id }} {{ $row->total }} eventos
  • @empty
  • Sem dados.
  • @endforelse
@if(!empty($eventsByType))

Eventos por tipo (30 dias)

@foreach($eventsByType as $event => $total)

{{ $event }}

{{ $total }}

@endforeach
@endif
@endsection