@extends('layouts.user') @section('title', 'License Details') @section('topbar-title', 'License Details') @push('styles') @endpush @section('content')

License Key

{{ $license->license_key }}
Product {{ $license->product->name }}
Server IP {{ $license->valid_ip }}
@if($license->valid_domain)
Valid Domain {{ $license->valid_domain }}
@endif
Status {{ $license->status }}
Expires {{ $license->expires_at ? $license->expires_at->format('F j, Y') : 'No expiry set' }}
IP Changes Used {{ $license->ip_changes }}/3
Order {{ $license->order->invoice_number }}
Billing Cycle {{ $license->order->billing_cycle }}
@if($license->isActive())

Change IP Address

@if($license->canChangeIp())
You have {{ 3 - $license->ip_changes }} IP change(s) remaining. This action updates your license on the ResellerCenter server immediately.
@csrf
Current IP: {{ $license->valid_ip }}
@else
Maximum IP changes reached (3/3).
Contact support to change your IP.
@endif
@else
This license is {{ $license->status }}.
Contact support to resolve this.
@endif

Activity Log

@if($license->logs->isEmpty())
No activity recorded
@else @foreach($license->logs->sortByDesc('created_at') as $log)
{{ str_replace('_', ' ', $log->action) }}
@if($log->old_value && $log->new_value)
{{ $log->old_value }} → {{ $log->new_value }}
@endif @if($log->message)
{{ $log->message }}
@endif
{{ $log->created_at->diffForHumans() }}
@endforeach @endif

Quick Info

RC Product: {{ $license->product->rc_product_key }}

Created: {{ $license->created_at->format('M j, Y') }}

License ID: #{{ $license->id }}

@push('scripts') @endpush @endsection