@extends('layouts.app') @section('content') @php $canManage = auth()->user()->canManageLicenses(); $isAdmin = auth()->user()->isSlamSuperAdmin(); $sortLink = fn (string $column) => request()->fullUrlWithQuery([ 'sort' => $column, 'dir' => $sort === $column && $direction === 'asc' ? 'desc' : 'asc', ]); @endphp

Lisensi software

Produk → lisensi → seat. Kunci lisensi dan password akun disimpan terenkripsi.

Dashboard Tindak lanjut Produk @if ($isAdmin) Trash Audit log Impor @endif @if ($canManage) + Lisensi @endif
Total lisensi
{{ $stats['total'] }}
Seat terpakai
{{ $stats['assigned'] }}
Segera berakhir ≤ {{ $soonDays }} hari
{{ $stats['soon'] }}
Sudah kedaluwarsa
{{ $stats['expired'] }}
Reset
@forelse ($licenses as $license) @php $state = $license->expiryState($soonDays); @endphp @empty @endforelse
Produk / edisi SBU @if ($sort === 'sbu'){{ $direction === 'asc' ? '▲' : '▼' }}@endif Jenis @if ($sort === 'license_type'){{ $direction === 'asc' ? '▲' : '▼' }}@endif Qty @if ($sort === 'qty_total'){{ $direction === 'asc' ? '▲' : '▼' }}@endif Terpakai Sisa Berakhir @if ($sort === 'expired_at'){{ $direction === 'asc' ? '▲' : '▼' }}@endif Status Penanggung jawab Aksi
{{ $license->product?->name ?? '—' }}
{{ $license->edition ?: $license->product?->vendor }} @if ($license->edition && $license->product?->vendor) · {{ $license->product->vendor }} @endif @if ($license->hasLicenseKey())🔒@endif
{{ $license->sbu ?: '—' }} {{ $license->typeLabel() }} {{ $license->qty_total }} {{ $license->assignedSeatsCount() }} @if ($license->isNonCompliant()) Tidak patuh @endif {{ $license->availableSeats() }} @if ($state === 'perpetual') Perpetual @elseif ($state === 'expired') ⚠ {{ $license->expired_at?->format('d-m-Y') }} @elseif ($state === 'soon') ⏳ {{ $license->expired_at?->format('d-m-Y') }} @elseif ($license->expired_at) {{ $license->expired_at->format('d-m-Y') }} @else — @endif @if ($license->status === \App\Models\License::STATUS_CANCELLED) Dibatalkan @elseif ($state === 'expired') Kedaluwarsa @elseif ($state === 'soon') Segera berakhir @elseif ($state === 'perpetual') Perpetual @else Aktif @endif @if ($license->unused_seats_count > 0) {{ $license->unused_seats_count }} unused @endif {{ $license->owner?->name ?? '—' }}
Lihat @if ($canManage) Ubah @endif
Belum ada lisensi yang cocok dengan filter.
{{ $licenses->total() }} lisensi · {{ $licenses->perPage() }} per halaman {{ $licenses->links() }}
@if ($isAdmin)
@csrf

Ekspor laporan lisensi

CSV/Excel tanpa kunci lisensi dan password. Masukkan password login untuk melanjutkan.

@endif @endsection