@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
Produk → lisensi → seat. Kunci lisensi dan password akun disimpan terenkripsi.
| 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 ?? '—' }} | |
| Belum ada lisensi yang cocok dengan filter. | |||||||||