@extends('layouts.app') @section('title', 'Auditoria - Super Admin') @section('page-title', 'Logs de auditoria') @section('page-subtitle', 'Rastreabilidade de ações e eventos de segurança') @section('content')
Dashboard Exportar CSV @if(auth()->user()->hasRole('super_admin')) Segurança @endif
@forelse($logs as $log) @empty @endforelse
Data Evento Usuário Clínica Severidade
{{ $log->created_at->format('d/m/Y H:i') }} {{ $log->event }} {{ $log->user?->name ?? $log->user_name ?? '—' }} {{ $log->clinic?->name ?? '—' }} @php $colors = ['critical' => 'bg-red-100 text-red-800', 'high' => 'bg-orange-100 text-orange-800', 'medium' => 'bg-yellow-100 text-yellow-800', 'low' => 'bg-gray-100 text-gray-800']; @endphp {{ $log->severity }} Detalhe
Nenhum registro encontrado.
{{ $logs->withQueryString()->links() }}
@endsection