<div class="relative">
    
    <button wire:click="closeModal"
            class="absolute top-4 right-4 text-gray-400 hover:text-gray-600 transition-colors z-10"
            aria-label="Cerrar">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
    </button>

    <div class="p-6 space-y-4 text-sm">
        <div>
            <h3 class="text-lg font-semibold text-gray-900 mb-1 pr-8">
                Detalle del plugin: <?php echo e($plugin->name); ?>

            </h3>
            <div class="text-xs text-gray-600">
                <span class="font-semibold">Component:</span>
                <span class="font-mono"><?php echo e($plugin->component); ?></span>
            </div>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
            <div>
                <span class="font-semibold text-gray-700">Tipo:</span>
                <span><?php echo e($plugin->type); ?></span>
            </div>
            <div>
                <span class="font-semibold text-gray-700">Release:</span>
                <span><?php echo e($plugin->release); ?></span>
            </div>
            <div>
                <span class="font-semibold text-gray-700">Version disk:</span>
                <span><?php echo e($plugin->versiondisk); ?></span>
            </div>
            <div>
                <span class="font-semibold text-gray-700">Version db:</span>
                <span><?php echo e($plugin->versiondb); ?></span>
            </div>
            <div>
                <span class="font-semibold text-gray-700">Versión requerida:</span>
                <span><?php echo e($plugin->versionrequires); ?></span>
            </div>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
            <div>
                <span class="font-semibold text-gray-700">Plugins soportados:</span>
                <span><?php echo e($plugin->pluginsupported); ?></span>
            </div>
            <div>
                <span class="font-semibold text-gray-700">Plugins incompatibles:</span>
                <span><?php echo e($plugin->pluginincompatible); ?></span>
            </div>
        </div>

        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($plugin->has_dependencies && !empty($plugin->dependencies)): ?>
            <div>
                <span class="font-semibold text-gray-700">Dependencias:</span>
                <ul class="list-disc list-inside mt-1 text-xs text-gray-700">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $plugin->dependencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $dependency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(is_array($dependency)): ?>
                                <?php echo e($dependency['component'] ?? json_encode($dependency)); ?>

                            <?php else: ?>
                                <?php echo e($dependency); ?>

                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </ul>
            </div>
        <?php endif; ?><?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($plugin->has_updates && !empty($plugin->availableupdates)): ?>
            <div>
                <span class="font-semibold text-gray-700">Actualizaciones disponibles:</span>
                <ul class="list-disc list-inside mt-1 text-xs text-gray-700">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $plugin->availableupdates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $update): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li class="mb-1">
                            <?php
                                $version = is_array($update) ? ($update['version'] ?? null) : null;
                                $release = is_array($update) ? ($update['release'] ?? null) : null;
                                $url = is_array($update) ? ($update['download'] ?? $update['downloadurl'] ?? null) : null;
                            ?>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($version || $release): ?>
                                <span class="font-semibold">
                                    <?php echo e($version ?? ''); ?> <?php echo e($release ? '('.$release.')' : ''); ?>

                                </span>
                            <?php endif; ?><?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($url): ?>
                                <a href="<?php echo e($url); ?>" target="_blank" class="text-3ip hover:underline ml-1">
                                    Descargar actualización
                                </a>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </ul>
            </div>
        <?php else: ?>
            <div>
                <span class="font-semibold text-gray-700">Actualizaciones disponibles:</span>
                <span class="text-gray-600">No hay actualizaciones registradas para este plugin.</span>
            </div>
        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

        <div class="flex justify-end mt-4">
            <button wire:click="closeModal"
                    class="px-4 py-2 rounded-lg border border-gray-300 text-gray-700 hover:bg-gray-50 transition-colors">
                Cerrar
            </button>
        </div>
    </div>
</div><?php /**PATH /var/www/html/resources/views/livewire/environments/plugins/plugin-detail-modal.blade.php ENDPATH**/ ?>