@php $overviewUrl = route('applications.manage', $app); $licensesUrl = route('applications.licenses', $app); $settingsUrl = route('applications.settings', $app); $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'; $activeTab = 'settings'; $appKey = (string) ($app->key ?? ''); // Key format defaults $kf = is_array($app->key_format) ? $app->key_format : []; $type = old('key_type', $kf['type'] ?? 'random'); $len = (int) old('key_length', $kf['length'] ?? 32); $groups = old('key_groups', isset($kf['groups']) ? implode('-', $kf['groups']) : '4-4-4-4'); $maintenanceChecked = (bool) old('maintenance', $app->status === 'maintenance'); @endphp

Settings: {{ $app->name }}

App Key: @if($appKey !== '') {{ $appKey }} @else @endif
{{-- Success --}} @if (session('status') === 'settings-updated')
Saved
Your settings have been updated successfully.
@endif {{-- Errors --}} @if ($errors->any())
Error
{{ $errors->first() }}
@endif
@csrf @method('PUT') {{-- General --}}
General
Update the app name and the current version used for validation rules.
Use a short and recognizable name (example: “My Desktop App”).
If your API policy is ONLY_CURRENT, any other version will return UPDATE_REQUIRED.
{{-- Maintenance --}}
Maintenance
Temporarily block or limit clients and display a maintenance message.
{{ $maintenanceChecked ? 'Enabled' : 'Disabled' }}
This message can be returned by the API when maintenance is enabled.
{{-- Key format --}}
Key format
Define how license keys should be generated for this app.
Used only when Random length is selected.
Example: 4-4-4-4 generates keys like AB12-CD34-EF56-GH78.
{{-- Footer actions --}}
Cancel