@php $name = $row->user?->name ?: ($row->email ?: 'unknown'); @endphp
| User | {{ $name }} @if($row->user) (#{{ $row->user->id }}) @endif |
|---|---|
| {{ $row->email ?? '—' }} | |
| Panel | {{ $row->guard === 'admin' ? 'Admin' : 'Frontend' }} |
| Status | @if($row->status === 'failed') Failed — {{ $row->failure_reason }} @else Success @endif |
| Remember me | {{ $row->remember ? 'Yes' : 'No' }} |
| Logged in | {{ $row->login_at ? $row->login_at->copy()->timezone('Asia/Kolkata')->format('d M Y, H:i:s') : '—' }} |
| Logged out | @if($row->is_active) Still logged in @else {{ $row->logout_at ? $row->logout_at->copy()->timezone('Asia/Kolkata')->format('d M Y, H:i:s') : '—' }} @if($row->logout_type) ({{ $row->logout_type }}) @endif @endif |
| Duration | @if($row->is_active) live @elseif($row->duration_seconds !== null) {{ intdiv($row->duration_seconds, 3600) }}h {{ intdiv($row->duration_seconds % 3600, 60) }}m {{ $row->duration_seconds % 60 }}s @else — @endif |
| IP address | {{ $row->ip_address ?? '—' }} |
| Device | {{ trim(($row->device_type ?? '') . ' · ' . ($row->platform ?? ''), ' ·') ?: '—' }} |
| Browser | {{ $row->browser ?? '—' }} |
| User agent | {{ $row->user_agent ?? '—' }} |