{{-- resources/views/panel/licenses/index.blade.php --}}

Licenses — {{ $app->name }}

App Key: {{ $app->key }}
Back {{-- ✅ FIX DEFINITIVO: usa onclick (JS puro) para que NO dependa de Alpine en el header --}}
{{-- Flash status (map to friendly message) --}} @if (session('status')) @php $status = (string) session('status'); $statusMsg = match (true) { $status === 'license-created' => 'License created.', str_starts_with($status, 'bulk-created:') => 'Bulk licenses created.', $status === 'license-toggled' => 'License updated.', $status === 'license-deleted' => 'License deleted.', $status === 'hwid-reset' => 'HWID reset successfully.', default => $status, }; @endphp
{{ $statusMsg }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif
{{-- Toolbar --}}
{{-- Search --}}
@if(!empty($q)) Clear @endif
{{-- Tabs --}} @php $activeTotal = method_exists($licensesActive, 'total') ? (int) $licensesActive->total() : 0; $bannedTotal = method_exists($licensesBanned, 'total') ? (int) $licensesBanned->total() : 0; @endphp
{{-- ACTIVE TABLE --}}
@forelse($licensesActive as $lic) @empty @endforelse
Key Expires First used Last seen Actions
{{ $lic->license_key }} {{ $lic->expires_at?->format('Y-m-d H:i') ?? '—' }} {{ $lic->first_used_at?->format('Y-m-d H:i') ?? '—' }} {{ $lic->last_seen_at?->format('Y-m-d H:i') ?? '—' }}
Details
No active licenses found.
{{ $licensesActive->links() }}
{{-- BANNED TABLE --}}
Banned licenses
You can unban a license to allow activations again.
@forelse($licensesBanned as $lic) @empty @endforelse
Key Expires First used Last seen Actions
{{ $lic->license_key }}
banned
{{ $lic->expires_at?->format('Y-m-d H:i') ?? '—' }} {{ $lic->first_used_at?->format('Y-m-d H:i') ?? '—' }} {{ $lic->last_seen_at?->format('Y-m-d H:i') ?? '—' }}
Details
No banned licenses found.
{{ $licensesBanned->links() }}
{{-- ✅ Create Modal --}} {{-- ✅ Confirm Modal --}}