<div>
    <?php
$__split = function ($name, $params = []) {
    return [$name, $params];
};
[$__name, $__params] = $__split('components.section-header', ['title' => 'Dashboard','description' => 'Gestiona, monitoriza y toma acciones según tu interés.']);

$key = null;

$key ??= \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::generateKey('lw-2252074989-0', null);

$__html = app('livewire')->mount($__name, $__params, $key);

echo $__html;

unset($__html);
unset($__name);
unset($__params);
unset($__split);
if (isset($__slots)) unset($__slots);
?>


    <div class="py-8 max-w-7xl mx-auto px-4">

        
        <div class="flex gap-6">

            <div class="flex flex-col bg-white shadow rounded-xl p-4 w-full">
                <div class="flex items-center justify-between">
                    <div class="text-lg font-semibold text-gray-800">
                        Clientes
                    </div>
                    <a href="<?php echo e(route('clients.index')); ?>" class="text-sm font-semibold text-blue-500 hover:text-blue-700">Ver todos</a>
                </div>
                <div class="flex flex-col mt-4">
                    <div class="text-sm text-gray-500">
                        Total
                    </div>
                    <div class="text-xl font-bold text-gray-800">
                        <?php echo e($totalClients); ?>

                    </div>
                </div>
                <hr class="my-2 border-gray-200">
                <div class="flex flex-col">
                    <div class="text-sm text-gray-500">
                        Este mes
                    </div>
                    <div class="text-xl font-bold text-gray-800">
                        <?php echo e($totalClientsThisMonth); ?> nuevos
                    </div>
                </div>
            </div>

            <div class="flex flex-col bg-white shadow rounded-xl p-4 w-full">
                <div class="flex items-center justify-between">
                    <div class="text-lg font-semibold text-gray-800">
                        Entornos
                    </div>
                    <a href="<?php echo e(route('environments.index')); ?>" class="text-sm font-semibold text-blue-500 hover:text-blue-700">Ver todos</a>
                </div>
                <div class="flex items-center justify-between mt-4">
                    <div class="flex flex-col">
                        <div class="text-sm text-gray-500">
                            Total
                        </div>
                        <div class="text-xl font-bold text-gray-800">
                            <?php echo e($totalEnvironments); ?>

                        </div>
                    </div>
                    <div class="flex flex-col">
                        <div class="text-sm text-gray-500">
                            Activos
                        </div>
                        <div class="text-xl font-bold text-gray-800">
                            <?php echo e($activeEnvironments); ?> / <?php echo e($totalEnvironments); ?>

                        </div>
                    </div>
                    <div class="flex flex-col">
                        <div class="text-sm text-gray-500">
                            Con licencia
                        </div>
                        <div class="text-xl font-bold text-gray-800">
                            <?php echo e($activeEnvironmentsWithLicense); ?>

                        </div>
                    </div>
                </div>
                <hr class="my-2 border-gray-200">
                <div class="flex flex-col">
                    <div class="text-sm text-gray-500">
                        Este mes
                    </div>
                    <div class="text-xl font-bold text-gray-800">
                        <?php echo e($totalEnvironmentsThisMonth); ?> nuevos
                    </div>
                </div>
            </div>

            <div class="flex flex-col bg-white shadow rounded-xl p-4 w-full">
                <div class="flex items-center justify-between">
                    <div class="text-lg font-semibold text-gray-800">
                        Licencias
                    </div>
                    <a href="<?php echo e(route('license_tokens.index')); ?>" class="text-sm font-semibold text-blue-500 hover:text-blue-700">Ver todos</a>
                </div>
                <div class="flex items-center justify-between mt-4">
                    <div class="flex flex-col">
                        <div class="text-sm text-gray-500">
                            Total
                        </div>
                        <div class="text-xl font-bold text-gray-800">
                            <?php echo e($totalTokens); ?>

                        </div>
                    </div>
                    <div class="flex flex-col">
                        <div class="text-sm text-gray-500">
                            Vencen pronto
                        </div>
                        <div class="text-xl font-bold text-gray-800">
                            <?php echo e($expiringTokens); ?>

                        </div>
                    </div>
                    <div class="flex flex-col">
                        <div class="text-sm text-gray-500">
                            Vencidas
                        </div>
                        <div class="text-xl font-bold text-gray-800">
                            <?php echo e($expiredTokens); ?>

                        </div>
                    </div>
                </div>
                <hr class="my-2 border-gray-200">
                <div class="flex flex-col">
                    <div class="text-sm text-gray-500">
                        Este mes
                    </div>
                    <div class="text-xl font-bold text-gray-800">
                        <?php echo e($totalTokensThisMonth); ?> nuevos
                    </div>
                </div>
            </div>

        </div>


        
        <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mt-10">

            
            <div class="bg-white rounded-xl shadow p-6">
                <h3 class="text-lg font-semibold text-gray-800 mb-4 flex items-center space-x-2">
                    <span>Listado de incidencias</span>
                </h3>

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($latestNotices->isEmpty()): ?>
                    <p class="text-gray-500 text-sm">No hay incidencias recientes.</p>
                <?php else: ?>
                    <ul class="divide-y">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $latestNotices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li class="py-3">
                                <p class="font-medium text-gray-800">
                                    <?php echo e($notice->title ?? 'Incidencia'); ?>

                                </p>
                                <p class="text-xs text-gray-500">
                                    <?php echo e($notice->created_at->diffForHumans()); ?>

                                </p>
                            </li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </ul>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>

            
            <div class="bg-white rounded-xl shadow p-6">
                <h3 class="text-lg font-semibold text-gray-800 mb-4 flex items-center space-x-2">
                    <span>Alertas de caducidad</span>
                </h3>

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($latestLogs->isEmpty()): ?>
                    <p class="text-gray-500 text-sm">No hay alertas de caducidad recientes.</p>
                <?php else: ?>
                    <ul class="divide-y">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $latestLogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $log): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li class="py-3">
                                <p class="text-gray-700">
                                    <?php echo e($log->message); ?>

                                </p>
                                <p class="text-xs text-gray-500">
                                    <?php echo e($log->created_at->diffForHumans()); ?>

                                </p>
                            </li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </ul>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>

        </div>

        
        <div class="mt-10">
            <h3 class="text-lg font-semibold text-gray-800 mb-4">Accesos rápidos</h3>

            <div class="flex gap-4">

                <a href="<?php echo e(route('environments.create')); ?>"
                   class="dashboard-quick-btn w-full">
                    <?php if (isset($component)) { $__componentOriginal261827c949f61002cd2898b3f98b1d37 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal261827c949f61002cd2898b3f98b1d37 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon.plus-circle','data' => ['class' => 'w-6 h-6 text-blue-500']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon.plus-circle'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'w-6 h-6 text-blue-500']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal261827c949f61002cd2898b3f98b1d37)): ?>
<?php $attributes = $__attributesOriginal261827c949f61002cd2898b3f98b1d37; ?>
<?php unset($__attributesOriginal261827c949f61002cd2898b3f98b1d37); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal261827c949f61002cd2898b3f98b1d37)): ?>
<?php $component = $__componentOriginal261827c949f61002cd2898b3f98b1d37; ?>
<?php unset($__componentOriginal261827c949f61002cd2898b3f98b1d37); ?>
<?php endif; ?>
                    <span>Nuevo entorno</span>
                </a>

                <a href="<?php echo e(route('clients.create')); ?>"
                   class="dashboard-quick-btn w-full">
                    <?php if (isset($component)) { $__componentOriginald69ca9dec174df52d51130907f3efc27 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald69ca9dec174df52d51130907f3efc27 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon.user-plus','data' => ['class' => 'w-6 h-6 text-green-500']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon.user-plus'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'w-6 h-6 text-green-500']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald69ca9dec174df52d51130907f3efc27)): ?>
<?php $attributes = $__attributesOriginald69ca9dec174df52d51130907f3efc27; ?>
<?php unset($__attributesOriginald69ca9dec174df52d51130907f3efc27); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald69ca9dec174df52d51130907f3efc27)): ?>
<?php $component = $__componentOriginald69ca9dec174df52d51130907f3efc27; ?>
<?php unset($__componentOriginald69ca9dec174df52d51130907f3efc27); ?>
<?php endif; ?>
                    <span>Nuevo cliente</span>
                </a>

                <a href="<?php echo e(route('license_tokens.create')); ?>"
                   class="dashboard-quick-btn w-full">
                    <?php if (isset($component)) { $__componentOriginal877da9610ea27f73f0f8f9d5d01fbd9b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal877da9610ea27f73f0f8f9d5d01fbd9b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon.key','data' => ['class' => 'w-6 h-6 text-amber-500']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon.key'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'w-6 h-6 text-amber-500']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal877da9610ea27f73f0f8f9d5d01fbd9b)): ?>
<?php $attributes = $__attributesOriginal877da9610ea27f73f0f8f9d5d01fbd9b; ?>
<?php unset($__attributesOriginal877da9610ea27f73f0f8f9d5d01fbd9b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal877da9610ea27f73f0f8f9d5d01fbd9b)): ?>
<?php $component = $__componentOriginal877da9610ea27f73f0f8f9d5d01fbd9b; ?>
<?php unset($__componentOriginal877da9610ea27f73f0f8f9d5d01fbd9b); ?>
<?php endif; ?>
                    <span>Nuevo token</span>
                </a>

            </div>
        </div>

    </div>
</div><?php /**PATH /var/www/html/resources/views/livewire/dashboard/index.blade.php ENDPATH**/ ?>