@extends('layouts.admin') @section('title', 'License Detail') @section('topbar-title', 'License Detail') @section('content')

License Info

{{ $license->license_key }}
@foreach([ 'Product' => $license->product->name, 'RC Key' => $license->product->rc_product_key, 'Server IP' => $license->valid_ip, 'Valid Domain' => $license->valid_domain ?: '—', 'Status' => null, 'IP Changes' => $license->ip_changes . '/3', 'Expires' => $license->expires_at?->format('F j, Y') ?? 'Not set', 'Created' => $license->created_at->format('M j, Y H:i'), ] as $label => $val)
{{ $label }} @if($label === 'Status') {{ $license->status }} @else {{ $val }} @endif
@endforeach

User

{{ $license->user->name }}
{{ $license->user->email }}
@if($license->user->company)
{{ $license->user->company }}
@endif View User

Order

@foreach([ 'Invoice' => $license->order->invoice_number, 'Amount' => '$' . number_format($license->order->amount, 2), 'Billing' => $license->order->billing_cycle, 'Paid At' => $license->order->paid_at?->format('M j, Y') ?? '—', ] as $label => $val)
{{ $label }} {{ $val }}
@endforeach

Activity Log

@forelse($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() }}
@empty
No activity logged
@endforelse
@endsection