{{-- Header --}}

{{ __('User Authentication Logs') }}

{{ __('Monitor and audit logins and logouts for both administrators and customers') }}

{{-- Filter Bar --}}
{{-- Log Table --}}
@forelse($logs as $log) @empty @endforelse
{{ __('Timestamp') }} {{ __('User (Username/Email)') }} {{ __('User Type') }} {{ __('Action') }} {{ __('IP Address') }} {{ __('User Agent') }}
{{ $log->created_at->format('d M Y, h:i A') }}
({{ $log->created_at->diffForHumans() }})
{{ $log->username }}
@if($log->authenticatable_type === \App\Models\User::class) @if($log->authenticatable?->reseller) {{ __('Reseller') }} @else {{ __('Admin') }} @endif @else {{ __('Customer') }} @endif @if($log->action === 'login') {{ __('Login') }} @else {{ __('Logout') }} @endif {{ $log->ip_address ?? 'N/A' }} {{ $log->user_agent }}
{{ __('No authentication logs found.') }}
@if($logs->hasPages()) @endif