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

Device Details

Device information and activity history

Back

Device Information

Device ID {{ $deviceLog->device_id }}
Device Name {{ $deviceLog->device_name }}
Device Type {{ $deviceLog->device_type }}
Operating System {{ $deviceLog->os }}
Browser {{ $deviceLog->browser }}
IP Address {{ $deviceLog->ip_address }}
Location {{ $deviceLog->city ? $deviceLog->city . ', ' : '' }}{{ $deviceLog->country ?? 'Unknown' }}
Status @if($deviceLog->is_active) Active @else Inactive @endif
Last Seen {{ $deviceLog->last_seen?->format('M d, Y H:i:s') ?? '-' }}

License Information

Customer {{ $deviceLog->license->name ?? '-' }}
Email {{ $deviceLog->license->email ?? '-' }}
License Status @php $statusColors = [ 'active' => 'text-green-600 dark:text-green-400', 'expired' => 'text-red-600 dark:text-red-400', 'suspended' => 'text-yellow-600 dark:text-yellow-400', 'revoked' => 'text-gray-600 dark:text-gray-400', ]; @endphp {{ ucfirst($deviceLog->license->status ?? 'N/A') }}
Max Devices {{ $deviceLog->license->max_devices ?? '-' }}
Current Devices {{ $deviceLog->license->current_devices ?? '-' }}
@if($deviceLog->is_active)
@csrf
@else
@csrf
@endif

Activity History

@forelse($recentActivity as $activity) @empty @endforelse
Action Time
@php $actionColors = [ 'login' => 'bg-green-100 text-green-700 dark:bg-green-900 dark:text-green-300', 'logout' => 'bg-gray-100 text-gray-700 dark:bg-gray-700 dark:text-gray-300', 'heartbeat' => 'bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-300', 'failed' => 'bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-300', 'blocked' => 'bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-300', ]; @endphp {{ ucfirst($activity->action) }} {{ $activity->created_at->format('M d, Y H:i:s') }}

No activity history

@endsection