@extends('layouts.superadmin') @section('title', 'Auditoria Global') @section('content')

Log de Auditoria Global

{{ $logs->total() }} eventos registrados

{{-- Filtros --}}
Limpar
@forelse($logs as $log) @php $actionColors = [ 'login' => 'badge-blue', 'logout' => 'badge-gray', 'create' => 'badge-green', 'update' => 'badge-yellow', 'delete' => 'badge-red', 'cancel' => 'badge-red', ]; $badgeClass = $actionColors[$log->action] ?? 'badge-gray'; @endphp @empty @endforelse
Data/Hora Hotel Usuário Ação Entidade IP
{{ $log->created_at->format('d/m/Y') }}
{{ $log->created_at->format('H:i:s') }}
{{ $log->hotel?->name ?? '—' }}
{{ $log->user?->name ?? 'Sistema' }}
{{ $log->user?->email }}
{{ $log->action }} @if($log->entity_type)
{{ class_basename($log->entity_type) }}
@if($log->entity_id)
#{{ $log->entity_id }}
@endif @else — @endif
{{ $log->ip_address ?? '—' }}
Nenhum log encontrado.
@if($logs->hasPages())
{{ $logs->links() }}
@endif
@endsection