@extends('layouts.admin') @section('title', 'Security Log') @section('role-label', 'Super Admin') @section('page-title', 'Security Log') @section('page-subtitle', 'Failed logins, lockouts, and unauthorized access attempts across the platform') @section('sidebar-nav')@include('super-admin.partials.sidebar')@endsection @section('content')
@if(request('all') || request('action') || request('ip')) Reset @endif {{ $showAll ? 'Show security events only' : 'Show all activity' }}
@forelse($logs as $log) @empty @endforelse
When Action User Description IP Device
{{ $log->created_at->format('d M, H:i') }} {{ str_replace('_', ' ', $log->action) }} {{ $log->user?->username ?? '—' }} {{ $log->description }} {{ $log->ip_address ?? '—' }} {{ \Illuminate\Support\Str::limit($log->user_agent, 40) ?: '—' }}
No matching events.
{{ $logs->links() }}
@endsection