@extends('layouts.app') @section('title', __('License Management')) @section('content')

@lang('License Management')

@component('components.widget', ['class' => 'box-primary'])

Generate New License


@if(session('status'))
{!! session('status')['msg'] !!} @if(isset(session('status')['license_code']))
License Code: {{ session('status')['license_code'] }} @endif
@endif
@csrf
@endcomponent @component('components.widget', ['class' => 'box-primary'])

Existing Licenses


@forelse($licenses as $license) @empty @endforelse
Module License Code Username Email Type Expiry Date Status Installations Install Domain Install URL Created At Actions
{{ $license->module_name ?? 'N/A' }} {{ $license->license_code ?? 'N/A' }} {{ $license->username ?? 'N/A' }} {{ $license->email ?? 'N/A' }} @php $license_type = strtolower($license->license_type ?? 'single'); $type_label = 'Single Site'; $type_class = 'info'; if ($license_type == 'multi') { $type_label = 'Multi Site (10 max)'; $type_class = 'primary'; } elseif ($license_type == 'unlimited') { $type_label = 'Unlimited'; $type_class = 'success'; } @endphp {{ $type_label }} @if($license->expiry_date ?? null) {{ \Carbon\Carbon::parse($license->expiry_date)->format('Y-m-d') }} @else Lifetime @endif @php $status = $license->status ?? 'active'; $statusClass = 'warning'; if ($status == 'active') { $statusClass = 'success'; } elseif ($status == 'expired' || $status == 'revoked') { $statusClass = 'danger'; } elseif ($status == 'suspended') { $statusClass = 'warning'; } else { $statusClass = 'default'; } @endphp {{ ucfirst($status) }} @php $install_count = $license->installation_count ?? 0; $install_limit = $license->installation_limit ?? 1; $limit_text = is_numeric($install_limit) ? $install_limit : '∞'; @endphp {{ $install_count }}/{{ $limit_text }} @if($install_limit !== 'unlimited' && $install_count >= $install_limit)
Limit reached @endif
@if(isset($license->install_domain) && !empty($license->install_domain)) {{ $license->install_domain }} @else - @endif @if(isset($license->install_url) && !empty($license->install_url)) View @else - @endif @if(isset($license->created_at)) {{ \Carbon\Carbon::parse($license->created_at)->format('Y-m-d H:i') }} @else N/A @endif @php $license_id = $license->id ?? null; $current_status = strtolower(trim($license->status ?? 'active')); $has_install_data = isset($license->install_domain) && !empty($license->install_domain); $license_type = strtolower($license->license_type ?? 'single'); @endphp @if($license_id)
@else - @endif

No licenses found. Generate a license above.

@endcomponent
@endsection @section('javascript') @endsection