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

License Details

Manage license and monitor devices

Back
{{ $license->key }}
@php $statusColors = [ 'active' => 'bg-green-100 text-green-700 border-green-200 dark:bg-green-900 dark:text-green-300 dark:border-green-700', 'expired' => 'bg-red-100 text-red-700 border-red-200 dark:bg-red-900 dark:text-red-300 dark:border-red-700', 'suspended' => 'bg-yellow-100 text-yellow-700 border-yellow-200 dark:bg-yellow-900 dark:text-yellow-300 dark:border-yellow-700', 'revoked' => 'bg-gray-100 text-gray-700 border-gray-200 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-600', ]; @endphp {{ ucfirst($license->status) }}

License Information

Customer Name {{ $license->name ?? '-' }}
Email {{ $license->email ?? '-' }}
Activated {{ $license->activated_at?->format('M d, Y H:i') ?? '-' }}
Expires {{ $license->expires_at?->format('M d, Y') ?? 'Never' }}
Max Devices {{ $license->max_devices }}
Current Devices {{ $license->current_devices }} / {{ $license->max_devices }}

Device Statistics

Active Devices
{{ $deviceStats['active'] }}
Inactive Devices
{{ $deviceStats['inactive'] }}
Total Sessions
{{ $deviceStats['total'] }}

Quick Actions

Edit License

Connected Devices

@forelse($license->deviceLogs()->orderBy('last_seen', 'desc')->get() as $device) @empty @endforelse
Device Status
@if($device->device_type === 'mobile') @elseif($device->device_type === 'tablet') @else @endif
{{ $device->device_name }}
{{ $device->browser }}
@if($device->is_active) Active @else Inactive @endif

No devices connected yet

@endsection