
<div class="w-full" style="font-size:14px; display:flex; flex-direction:column; gap:14px;">

    
    <?php if (isset($component)) { $__componentOriginal2544aeb3df80db4e8cf42f27632fe7f3 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal2544aeb3df80db4e8cf42f27632fe7f3 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.cabecera','data' => ['rotulo' => 'Sistema','titulo' => 'Configuración','descripcion' => 'Todo lo que se toca aquí tiene consecuencias en otro lado: en los sitios de los clientes, en quién recibe los avisos o en lo que ve cada persona del equipo. Este es el estado actual.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('cabecera'); ?>
<?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(['rotulo' => 'Sistema','titulo' => 'Configuración','descripcion' => 'Todo lo que se toca aquí tiene consecuencias en otro lado: en los sitios de los clientes, en quién recibe los avisos o en lo que ve cada persona del equipo. Este es el estado actual.']); ?>

         <?php $__env->slot('icono', null, []); ?> 
            <?php if (isset($component)) { $__componentOriginalb86967db162ccc0bceeb1ac50f169b8f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb86967db162ccc0bceeb1ac50f169b8f = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.nav-icon','data' => ['name' => 'settings','tint' => 'orange']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('nav-icon'); ?>
<?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(['name' => 'settings','tint' => 'orange']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalb86967db162ccc0bceeb1ac50f169b8f)): ?>
<?php $attributes = $__attributesOriginalb86967db162ccc0bceeb1ac50f169b8f; ?>
<?php unset($__attributesOriginalb86967db162ccc0bceeb1ac50f169b8f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb86967db162ccc0bceeb1ac50f169b8f)): ?>
<?php $component = $__componentOriginalb86967db162ccc0bceeb1ac50f169b8f; ?>
<?php unset($__componentOriginalb86967db162ccc0bceeb1ac50f169b8f); ?>
<?php endif; ?>
         <?php $__env->endSlot(); ?>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal2544aeb3df80db4e8cf42f27632fe7f3)): ?>
<?php $attributes = $__attributesOriginal2544aeb3df80db4e8cf42f27632fe7f3; ?>
<?php unset($__attributesOriginal2544aeb3df80db4e8cf42f27632fe7f3); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal2544aeb3df80db4e8cf42f27632fe7f3)): ?>
<?php $component = $__componentOriginal2544aeb3df80db4e8cf42f27632fe7f3; ?>
<?php unset($__componentOriginal2544aeb3df80db4e8cf42f27632fe7f3); ?>
<?php endif; ?>

    
    
    <div class="cfg-estado-grid">
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $estado; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tarjeta): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="rounded-xl border p-[14px_18px]"
                 style="background:var(--surface-card); border-color:var(--border-subtle); padding:14px 18px;">
                <div class="text-[11px] font-semibold uppercase tracking-[0.06em]" style="color:var(--text-muted);">
                    <?php echo e($tarjeta['titulo']); ?>

                </div>
                <div class="mt-[5px] flex items-center gap-[7px]">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($tarjeta['color']): ?>
                        <span class="h-2 w-2 flex-none rounded-full" style="background:<?php echo e($tarjeta['color']); ?>;"></span>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    <span class="text-[14px] font-bold" style="color:var(--text-strong);">
                        <?php echo e($tarjeta['valor']); ?>

                    </span>
                </div>
                <div class="mt-0.5 text-[11.5px]" style="color:var(--text-muted);">
                    <?php echo e($tarjeta['nota']); ?>

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

    
    <div class="cfg-bloques-grid">

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('admin.configs.index')): ?>
            <a href="<?php echo e(route('configurations.manager.index')); ?>" wire:navigate
               class="cfg-bloque" style="background:var(--surface-card); border:1px solid var(--border-subtle);">
                <span class="flex h-[38px] w-[38px] items-center justify-center rounded-[10px]"
                      style="background:var(--orange-100); color:var(--orange-600);">
                    <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M20 7h-9"/><path d="M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/></svg>
                </span>
                <div style="font-family:'Plus Jakarta Sans',sans-serif; font-size:15px; font-weight:700; color:var(--text-strong);">
                    Ajustes del Manager
                </div>
                <div class="flex-1 text-[12.5px] leading-[1.5]" style="color:var(--text-muted);">
                    Los topes de la API, a quién se avisa de las licencias que caducan y cuánto
                    histórico se guarda. Es lo que se toca cada semana, y un cambio aquí llega a
                    los sitios de los clientes en su siguiente petición.
                </div>
                <span class="text-[12.5px] font-semibold" style="color:var(--text-link);">
                    <?php echo e($cuantosAjustes); ?> ajustes →
                </span>
            </a>
        <?php endif; ?>

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['admin.roles.index', 'admin.permissions.index'])): ?>
            <a href="<?php echo e(route('configurations.access')); ?>" wire:navigate
               class="cfg-bloque" style="background:var(--surface-card); border:1px solid var(--border-subtle);">
                <span class="flex h-[38px] w-[38px] items-center justify-center rounded-[10px]"
                      style="background:var(--teal-100); color:var(--teal-700);">
                    <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>
                </span>
                <div class="flex flex-wrap items-center gap-2">
                    <span style="font-family:'Plus Jakarta Sans',sans-serif; font-size:15px; font-weight:700; color:var(--text-strong);">
                        Acceso
                    </span>
                    
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($acceso['sinPermisos'] > 0): ?>
                        <span class="rounded-full px-2 py-px text-[10.5px] font-bold"
                              style="color:var(--danger-500); background:var(--danger-50);">
                            <?php echo e($acceso['sinPermisos'] . ($acceso['sinPermisos'] === 1 ? ' rol sin permisos' : ' roles sin permisos')); ?>

                        </span>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </div>
                <div class="flex-1 text-[12.5px] leading-[1.5]" style="color:var(--text-muted);">
                    Roles y permisos, juntos: quién puede ver y tocar qué. Cambiar un rol cambia
                    de inmediato lo que ven todas las personas que lo tienen.
                </div>
                <span class="text-[12.5px] font-semibold" style="color:var(--text-link);">
                    <?php echo e($acceso['roles']); ?> roles · <?php echo e($acceso['permisos']); ?> permisos →
                </span>
            </a>
        <?php endif; ?>

        
        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('admin.api-tokens.index')): ?>
            <a href="<?php echo e(route('configurations.api-tokens')); ?>" wire:navigate
               class="cfg-bloque" style="background:var(--surface-card); border:1px solid var(--border-subtle);">
                <span class="flex h-[38px] w-[38px] items-center justify-center rounded-[10px]"
                      style="background:var(--warning-50); color:var(--warning-500);">
                    <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"/><circle cx="16.5" cy="7.5" r=".5" fill="currentColor"/></svg>
                </span>
                <div style="font-family:'Plus Jakarta Sans',sans-serif; font-size:15px; font-weight:700; color:var(--text-strong);">
                    API de administración
                </div>
                <div class="flex-1 text-[12.5px] leading-[1.5]" style="color:var(--text-muted);">
                    Los tokens con los que Sistemas da de alta clientes, licencias y entornos
                    sin pasar por el panel, y su documentación. Cada token solo hace lo que se le
                    marca, y revocarlo lo corta al momento.
                </div>
                <span class="text-[12.5px] font-semibold" style="color:var(--text-link);">
                    <?php echo e($tokensActivos); ?> <?php echo e($tokensActivos === 1 ? 'token activo' : 'tokens activos'); ?> →
                </span>
            </a>
        <?php endif; ?>

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('admin.configurations.environments-types.index')): ?>
            <a href="<?php echo e(route('configurations.catalogs')); ?>" wire:navigate
               class="cfg-bloque" style="background:var(--surface-card); border:1px solid var(--border-subtle);">
                <span class="flex h-[38px] w-[38px] items-center justify-center rounded-[10px]"
                      style="background:var(--info-50); color:var(--info-500);">
                    <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M3 12h18"/><path d="M3 18h18"/></svg>
                </span>
                <div style="font-family:'Plus Jakarta Sans',sans-serif; font-size:15px; font-weight:700; color:var(--text-strong);">
                    Catálogos
                </div>
                <div class="flex-1 text-[12.5px] leading-[1.5]" style="color:var(--text-muted);">
                    Dos listas cortas de las que depende lo demás: los <strong>tipos de entorno</strong>
                    —la plataforma que declara cada sitio, y de la que sale qué productos son
                    compatibles— y los <strong>plugins Tresipunt</strong>, que es lo que hace que en el
                    catálogo de plugins se distingan los nuestros de los de terceros.
                </div>
                <span class="text-[12.5px] font-semibold" style="color:var(--text-link);">
                    <?php echo e($estado['parque']['valor']); ?> →
                </span>
            </a>
        <?php endif; ?>

        
        
        <a href="<?php echo e(route('configurations.version')); ?>" wire:navigate
           class="cfg-bloque" style="background:var(--surface-card); border:1px solid var(--border-subtle);">
            <span class="flex h-[38px] w-[38px] items-center justify-center rounded-[10px]"
                  style="background:var(--success-50); color:var(--success-500);">
                <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"/><circle cx="7.5" cy="7.5" r="1.5" fill="currentColor"/></svg>
            </span>
            <div style="font-family:'Plus Jakarta Sans',sans-serif; font-size:15px; font-weight:700; color:var(--text-strong);">
                Versión y cambios
            </div>
            <div class="flex-1 text-[12.5px] leading-[1.5]" style="color:var(--text-muted);">
                Qué versión del Manager corre aquí y qué trajo cada una, una línea por cambio.
                Es donde se mira si algo está ya subido, sin tener que preguntarlo.
            </div>
            <span class="text-[12.5px] font-semibold" style="color:var(--text-link);">
                <?php echo e($version); ?> en <?php echo e($donde); ?> →
            </span>
        </a>
    </div>

    
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->denies('admin.configs.index')): ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->denies('admin.roles.index')): ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->denies('admin.permissions.index')): ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->denies('admin.configurations.environments-types.index')): ?>
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->denies('admin.api-tokens.index')): ?>
                        <div class="rounded-xl border px-4 py-3 text-[13px]"
                             style="border-color:var(--border-default); background:var(--surface-alt); color:var(--text-muted);">
                            Tu rol no tiene permiso para configurar nada del Manager. Si necesitas
                            cambiar un ajuste, pídeselo a un administrador.
                        </div>
                    <?php endif; ?>
                <?php endif; ?>
            <?php endif; ?>
        <?php endif; ?>
    <?php endif; ?>
</div><?php /**PATH /var/www/html/resources/views/livewire/configurations/index.blade.php ENDPATH**/ ?>