<div>
    <div class="w-full flex justify-between items-start">
        <?php
$__split = function ($name, $params = []) {
    return [$name, $params];
};
[$__name, $__params] = $__split('components.section-header', ['title' => 'Entornos','description' => 'Visita el listado de entornos de 3ipunt y sus clientes.']);

$key = null;

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

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

echo $__html;

unset($__html);
unset($__name);
unset($__params);
unset($__split);
if (isset($__slots)) unset($__slots);
?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('admin.environments.create')): ?>
        <a href="<?php echo e(route('environments.create')); ?>"
            class="rounded bg-3ip px-4 py-2 text-white hover:bg-3ip-light flex items-center">
            <img src="<?php echo e(asset('vendor/blade-untitledui-icons/plus.svg')); ?>" alt="Logo"
                class="w-6 h-6 mr-2 svg-fill-white">
            Nuevo entorno
        </a>
        <?php endif; ?>
    </div>
    <div class="flex flex-wrap w-full">

        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(session()->has('success')): ?>
            <div class="mb-4 rounded bg-green-100 px-4 py-2 text-green-700 w-full">
                <?php echo e(session('success')); ?>

            </div>
        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

        
        <div class="flex flex-wrap items-center justify-between w-full gap-4 mt-4">
            
            <div class="w-full md:w-1/3">
                <input type="text" wire:model.live.debounce.300ms="search" placeholder="Buscar por nombre, dominio o cliente"
                    class="w-full rounded-lg border-2 border-gray-200 px-4 py-2">
            </div>

            
            <div class="flex flex-wrap items-center gap-4">
                <div>
                    <label class="block text-xs font-semibold text-gray-600 mb-1">Tipo de entorno</label>
                    <select wire:model.live="envFilter"
                        class="rounded-lg border-2 border-gray-200 px-3 py-2 text-sm">
                        <option value="">Todos</option>
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = \App\Models\Environments\Environment::ENVIRONMENTS; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($key); ?>"><?php echo e($label); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </select>
                </div>

                <div class="flex flex-col gap-1">
                    <span class="text-xs font-semibold text-gray-600">Actualizaciones core</span>
                    <label class="inline-flex items-center text-sm text-gray-700">
                        <input type="checkbox" wire:model.live="onlyCoreMajorUpdates" class="rounded border-gray-300 mr-2">
                        Actualización mayor
                    </label>
                    <label class="inline-flex items-center text-sm text-gray-700">
                        <input type="checkbox" wire:model.live="onlyCoreMinorUpdates" class="rounded border-gray-300 mr-2">
                        Actualización menor
                    </label>
                </div>
            </div>

            
            <div class="flex flex-wrap items-center gap-4">
                <div class="flex flex-col gap-1">
                    <span class="text-xs font-semibold text-gray-600">Plugins</span>
                    <label class="inline-flex items-center text-sm text-gray-700">
                        <input type="checkbox" wire:model.live="onlyEnvironmentsWithOutdatedPlugins" class="rounded border-gray-300 mr-2">
                        Solo entornos con plugins desactualizados
                    </label>
                    <input type="text" wire:model.live.debounce.300ms="pluginComponentFilter"
                        placeholder="Filtrar por component de plugin"
                        class="mt-1 w-full rounded-lg border-2 border-gray-200 px-3 py-2 text-sm">
                </div>

                <div>
                    <label class="block text-xs font-semibold text-gray-600 mb-1">Producto vinculado</label>
                    <select wire:model.live="productFilter"
                        class="rounded-lg border-2 border-gray-200 px-3 py-2 text-sm">
                        <option value="">Todos</option>
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = \App\Models\Products\Product::orderBy('name')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($product->id); ?>"><?php echo e($product->name); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </select>
                </div>
            </div>
        </div>

        
        <div class="environment-card-list">
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $environments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $environment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
$__split = function ($name, $params = []) {
    return [$name, $params];
};
[$__name, $__params] = $__split('environments.components.environment-card', ['environment' => $environment,'client' => $environment->client,'showClient' => true]);

$key = ''.e($environment->id).'';

$key ??= \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::generateKey('lw-3710632035-1', ''.e($environment->id).'');

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

echo $__html;

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

        
        <div class="mt-4">
            <?php echo e($environments->links()); ?>

        </div>

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