@extends('layouts.admin') @section('content')

Rejestr Logowań

Lista Zarejestrowanych Logowań
@foreach($loginLogs as $log) {{-- Ogranicz długość user agent --}} @endforeach
Typ użytkownika Nazwa użytkownika/pracownika Adres IP Przeglądarka/Urządzenie Czas logowania
@if($log->user_type == 'user') Administrator @elseif($log->user_type == 'employee') Pracownik @else {{ $log->user_type }} @endif @if($log->authenticatable) @if($log->user_type == 'user') {{ $log->authenticatable->name }} @elseif($log->user_type == 'employee') {{ $log->authenticatable->name }} {{ $log->authenticatable->surname }} @else ID: {{ $log->user_id }} @endif @else Brak danych (ID: {{ $log->user_id }}) @endif {{ $log->ip_address ?? 'N/A' }} {{ Str::limit($log->user_agent, 80) ?? 'N/A' }}{{ $log->login_at }}
@endsection @push('scripts') @endpush