@php $status = (string) ($app->status ?? 'active'); $statusLabel = match ($status) { 'maintenance' => 'Maintenance', 'suspended' => 'Suspended', default => 'Active', }; $statusClasses = match ($status) { 'maintenance' => 'bg-yellow-50 text-yellow-800 dark:bg-yellow-900/20 dark:text-yellow-100 ring-1 ring-inset ring-yellow-200 dark:ring-yellow-700/50', 'suspended' => 'bg-red-50 text-red-700 dark:bg-red-900/20 dark:text-red-200 ring-1 ring-inset ring-red-200 dark:ring-red-700/50', default => 'bg-green-50 text-green-700 dark:bg-green-900/20 dark:text-green-200 ring-1 ring-inset ring-green-200 dark:ring-green-700/50', }; // Tabs $tabBase = 'px-3 py-2 rounded-md text-sm font-semibold transition'; $tabActive = 'bg-gray-900 text-white dark:bg-gray-100 dark:text-gray-900'; $tabIdle = 'border border-gray-200 text-gray-800 hover:bg-gray-50 dark:border-gray-700 dark:text-gray-200 dark:hover:bg-gray-800'; $overviewUrl = route('applications.manage', $app); $licensesUrl = route('applications.licenses', $app); $settingsUrl = route('applications.settings', $app); // This page is Overview $activeTab = 'overview'; // Counts $totalLic = (int) ($app->total_licenses_count ?? 0); $activeLic = (int) ($app->active_licenses_count ?? 0); $pct = $totalLic > 0 ? min(100, (int) round(($activeLic / $totalLic) * 100)) : 0; $appKey = (string) ($app->key ?? ''); $ver = (string) ($app->current_version ?? '-'); // Copy text area $configText = trim((string) ($configText ?? '')); @endphp

Manage: {{ $app->name }}

{{ $statusLabel }}
App Key: @if($appKey !== '') {{ $appKey }} @else @endif
{{-- Summary cards --}}
Current version
{{ $ver }}
This overview shows license usage and the current maintenance state.
Active licenses {{ $activeLic }} / {{ $totalLic }} ({{ $pct }}%)
Ratio of active licenses vs total licenses.
Total licenses
{{ $totalLic }}
Active licenses
{{ $activeLic }}
Maintenance message
{{ $app->maintenance_message ? $app->maintenance_message : 'No maintenance message.' }}
@if($status === 'maintenance')
Maintenance mode is enabled
Clients may be blocked depending on your API rules. Update the message in Settings.
@endif
{{-- Copy config --}}
Copy config
Plain text config for your client/app integration.
Tip: Paste this into your desktop app config or your server-side environment variables.