License Status
@php
$badge = match($status) {
'active' => ['label' => 'Active', 'bg' => 'bg-green-100', 'text' => 'text-green-800', 'dot' => 'bg-green-500'],
'invalid' => ['label' => 'Invalid', 'bg' => 'bg-red-100', 'text' => 'text-red-800', 'dot' => 'bg-red-500'],
'grace_period'=> ['label' => 'Grace Period', 'bg' => 'bg-yellow-100', 'text' => 'text-yellow-800', 'dot' => 'bg-yellow-500'],
default => ['label' => 'Unconfigured', 'bg' => 'bg-gray-100', 'text' => 'text-gray-600', 'dot' => 'bg-gray-400'],
};
@endphp
{{ $badge['label'] }}
{{-- License key (masked) --}}
- License Key
- {{ $maskedKey ?? '—' }}
@if(!empty($licenseData['buyer_name']))
- Buyer
- {{ $licenseData['buyer_name'] }}
@endif
@if(!empty($licenseData['domain']))
- Registered Domain
- {{ $licenseData['domain'] }}
@endif
@if(!empty($licenseData['expires_at']))
- Expires
-
{{ \Carbon\Carbon::parse($licenseData['expires_at'])->format('M j, Y') }}
@endif
@if($graceStart)
- Grace Period Started
-
{{ \Carbon\Carbon::parse($graceStart)->format('M j, Y H:i') }}
({{ \Carbon\Carbon::parse($graceStart)->diffForHumans() }})
@endif
- Last Validated
-
@if($lastValidated)
{{ \Carbon\Carbon::parse($lastValidated)->format('M j, Y H:i') }}
@else
Never
@endif
- Product
- {{ config('app.product_slug') }} v{{ config('app.version') }}
{{-- Re-validate button --}}
@if($licenseKey)
@endif