@extends('theme::layouts.app', ['title' => $pageHeader['title'] ?? __('account.Manage License')]) @section('content')
{{-- Account Navigation Sidebar --}} @include('theme::partials.account.nav') {{-- Main Content --}}
@if(isset($pageHeader))

{{ $pageHeader['title'] }}

{!! $pageHeader['subtitle'] !!}

@endif
{{-- Left Area: Form --}}
@include('flash::message') @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')

{{ __('account.License Configuration') }}

{{ __('account.Set security boundaries for where this license can be used.') }}

{{ __('account.Activations') }} {{ $license->activation_count ?? 0 }} / {{ $license->max_activations > 0 ? $license->max_activations : '∞' }}
{{-- Allowed Domains --}}
@php $domains = is_array($license->allowed_domains) ? implode(', ', $license->allowed_domains) : ''; @endphp

info {{ __('account.Separate multiple domains with commas. Leave blank to allow any domain.') }}

{{-- Allowed IPs --}}
@php $ips = is_array($license->allowed_ips) ? implode(', ', $license->allowed_ips) : ''; @endphp

info {{ __('account.Separate multiple IPs with commas. Leave blank to allow any IP address.') }}

@if ($license->is_revoked || (!is_null($license->expiry_date) && $license->expiry_date < now())) @else @endif
{{-- Right Sidebar: Status & Info --}}

info {{ __('account.License Info') }}

{{ __('account.Status') }} @if (is_null($license->expiry_date) || $license->expiry_date > now()) @if($license->is_revoked) {{ __('account.Revoked') }} @else {{ __('account.Active') }} @endif @else {{ __('account.Expired') }} @endif
{{ __('account.License Key') }}
{{ $license->license_key }}
{{ __('account.Expiry Date') }}
event {{ $license->expiry_date ? \Carbon\Carbon::parse($license->expiry_date)->format('F d, Y') : __('account.Lifetime Validity') }}
@if($license->order)
{{ __('account.Purchase Reference') }} receipt_long #{{ $license->order->order_reference }}
@endif
{{ __('account.Issue Date') }}
calendar_today {{ $license->created_at->format('M d, Y') }}
@endsection