@extends('layouts.app') @section('title', 'Lisans — '.$license->product->name) @section('actions') @can('update', $license) Düzenle @endcan @endsection @section('content') @error('action')
{{ $message }}
@enderror @if (session('new_license_key'))
Lisans oluşturuldu. Anahtarı müşteriye iletin:
{{ session('new_license_key') }}
@endif
Lisans anahtarı
@if ($revealedKey) {{ $revealedKey }} @else {{ $license->maskedKey() }} @can('revealKey', $license)
@csrf
@endcan @endif
Ürün
{{ $license->product->name }} {{ $license->product->product_code }}
Tür
{{ $license->type->label() }}
Durum
{{ $license->status->label() }}
Başlangıç
{{ $license->starts_at->format('d.m.Y') }}
Bitiş
{{ $license->expires_at?->timezone(config('app.display_timezone'))->format('d.m.Y') ?? 'Süresiz' }}
Aktivasyon
{{ $license->activations->where('status', \App\Enums\ActivationStatus::Active)->count() }} / {{ $license->max_activations }}
Oluşturan
{{ $license->creator?->name ?? '—' }}

Açık özellikler

@forelse ($license->features as $feature) {{ $feature->name }} · {{ $feature->key }} @empty

Özellik açılmamış.

@endforelse @if ($license->domains->isNotEmpty())

Alan adları

@foreach ($license->domains as $domain) {{ $domain->domain }}{{ $domain->is_dev ? ' (geliştirme)' : '' }} @endforeach @endif @if ($license->notes)

Notlar

{{ $license->notes }}

@endif
{{-- Aktivasyonlar --}}

Aktivasyonlar

@forelse ($license->activations as $activation) @empty @endforelse
CihazMakineSürümIPİlk / son görülmeDurum
{{ $activation->device_name ?? $activation->domain ?? '—' }} {{ substr($activation->machine_hash, 0, 12) }}… {{ $activation->app_version }} {{ $activation->ip_address }} {{ $activation->first_seen_at->timezone(config('app.display_timezone'))->format('d.m.Y') }} / {{ $activation->last_seen_at->timezone(config('app.display_timezone'))->format('d.m.Y H:i') }} {{ $activation->status->label() }} @if ($activation->status === \App\Enums\ActivationStatus::Active) @can('update', $license)
@csrf
@endcan @endif
Henüz aktivasyon yok.
{{-- Geçmiş --}}

Lisans geçmişi

@foreach ($license->events as $event) @endforeach
ZamanİşlemKullanıcıNot
{{ $event->created_at->timezone(config('app.display_timezone'))->format('d.m.Y H:i') }} {{ $event->label() }} {{ $event->user?->name ?? 'Sistem' }} {{ $event->note }}
{{-- İşlemler --}}
@can('update', $license)

İşlemler

@if ($license->type->hasExpiry() && $license->status !== \App\Enums\LicenseStatus::Iptal)
@csrf
@error('expires_at')
{{ $message }}
@enderror
@endif
@if ($license->status === \App\Enums\LicenseStatus::Aktif)
@csrf
@endif @if ($license->status === \App\Enums\LicenseStatus::Askida)
@csrf
@endif @if ($license->status !== \App\Enums\LicenseStatus::Iptal)
@csrf
@endif
@csrf
@error('customer_id')
{{ $message }}
@enderror Müşteri no, müşteri sayfasının adresindeki sayıdır.
@endcan
@endsection