
<?php
    $tope = 12;
    $sobran = max(0, count($filas) - $tope);
?>

<div class="mt-3 overflow-hidden rounded-lg border" style="border-color:var(--border-default);">
    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = array_slice($filas, 0, $tope); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $fila): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="flex flex-wrap items-center justify-between gap-x-4 gap-y-1 px-3.5 py-2 <?php echo e($i > 0 ? 'border-t' : ''); ?>"
             style="border-color:var(--divider);">

            <div class="min-w-0 flex-1" style="flex-basis:180px;">
                <div class="truncate text-[12.5px] font-semibold" style="color:var(--text-body);">
                    <?php echo e($fila['entorno']->name); ?>

                </div>
                <div class="text-[11px]" style="color:var(--text-subtle);">
                    plugin <span class="font-mono"><?php echo e($fila['instalada']); ?></span>
                </div>
            </div>

            
            <div class="flex flex-none items-center gap-2 text-[12px]">
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($fila['desde'] === null): ?>
                    <span class="rounded px-1.5 py-px font-semibold"
                          style="color:var(--text-subtle); background:var(--surface-sunken);">sin contenido</span>
                <?php else: ?>
                    <span class="font-mono" style="color:var(--text-muted);"><?php echo e($fila['desde']); ?></span>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="var(--text-subtle)"
                     stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round" class="flex-none">
                    <path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>
                </svg>

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($fila['hasta'] === null): ?>
                    
                    <span class="rounded px-1.5 py-px font-semibold"
                          style="color:var(--danger-500); background:var(--danger-50, var(--surface-sunken));">sin contenido</span>
                <?php else: ?>
                    <span class="rounded px-1.5 py-px font-mono font-semibold"
                          style="color:<?php echo e($tono === 'success' ? 'var(--success-600, var(--success-500))' : 'var(--text-strong)'); ?>;
                                 background:var(--surface-sunken);"><?php echo e($fila['hasta']); ?></span>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>
        </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($sobran > 0): ?>
        <div class="border-t px-3.5 py-1.5 text-[11.5px]"
             style="border-color:var(--divider); color:var(--text-subtle); background:var(--surface-alt);">
            y <?php echo e($sobran); ?> <?php echo e($sobran === 1 ? 'entorno más' : 'entornos más'); ?>

        </div>
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
</div><?php /**PATH /var/www/html/resources/views/livewire/products/contenido/entornos-afectados.blade.php ENDPATH**/ ?>