@extends('layouts.admin') @section('title', 'Licencias — Admin') @section('content')

🔑 Licencias de Plugin

Nueva Licencia
@php $statCards = [ ['label'=>'Total','val'=>$stats['total'],'icon'=>'fa-key','color'=>'blue'], ['label'=>'Activas','val'=>$stats['active'],'icon'=>'fa-check-circle','color'=>'green'], ['label'=>'Suspendidas','val'=>$stats['suspended'],'icon'=>'fa-pause-circle','color'=>'yellow'], ['label'=>'Expiradas','val'=>$stats['expired'],'icon'=>'fa-times-circle','color'=>'red'], ]; @endphp @foreach($statCards as $c)
{{ $c['label'] }}

{{ $c['val'] }}

@endforeach
@forelse($licenses as $lic) @empty @endforelse
Licencia Cliente Dominio Plan Estado Expiración Último Check Acciones
{{ $lic->license_key }}

{{ $lic->client_name }}

@if($lic->client_email)

{{ $lic->client_email }}

@endif
{{ $lic->domain }} @php $planObj = $lic->getRelation('plan'); @endphp @if($planObj) {{ strtoupper($planObj->name) }} @else N/A @endif @php $statusColors = [ 'active' => 'bg-green-500/20 text-green-400', 'suspended' => 'bg-yellow-500/20 text-yellow-400', 'expired' => 'bg-red-500/20 text-red-400', 'revoked' => 'bg-red-500/20 text-red-400', ]; @endphp {{ ucfirst($lic->status) }} {{ $lic->expires_at ? $lic->expires_at->format('d/m/Y') : 'Sin expiración' }} {{ $lic->last_check_at ? $lic->last_check_at->diffForHumans() : 'Nunca' }}
@csrf @method('PATCH')
@if($lic->client_email)
@csrf
@endif
@csrf @method('DELETE')

No hay licencias registradas

{{ $licenses->withQueryString()->links() }}
@endsection