@php
$msg = isset($exception) ? $exception->getMessage() : '';
$licensingErrors = ['Configuration missing.', 'Invalid purchase code', 'Integrity check failed.', 'Domain registration expired.'];
$isLicensingError = (isset($exception) && method_exists($exception, 'getHeaders') && !empty($exception->getHeaders()['X-License-Denied'])) ||
in_array($msg, $licensingErrors) ||
strpos(strtolower($msg), 'purchase code') !== false ||
strpos(strtolower($msg), 'integrity') !== false;
@endphp
@if ($isLicensingError)
🔑
License Verification Failed
{{ $msg ?: 'Your license could not be verified.' }}
Please enter a valid purchase code to restore system access.
@else
403
System Access Denied
{{ $msg ?: 'Your domain or license key is not properly verified. Please check your configuration.' }}
@endif