<?php
$columns = [
    [
        'label' => 'Clave',
        'width' => '200px',
        'render' => fn($rule) => e($rule->key),
    ],
    [
        'label' => 'Etiqueta',
        'width' => '200px',
        'render' => fn($rule) => e($rule->label),
    ],
    [
        'label' => 'Acciones',
        'width' => '240px',
        'render' => fn($rule) => '<a href="' . route('superadmin.section-rules.show', $rule->id) . '" class="hover:underline font-bold">Ver detalle</a>',
    ],
];
?>

<?php if (isset($component)) { $__componentOriginale9b1828e76ebe0c7e000efe9977b8aa6 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale9b1828e76ebe0c7e000efe9977b8aa6 = $attributes; } ?>
<?php $component = App\View\Components\Layouts\AuthLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('layouts.auth-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Layouts\AuthLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
    <div class="flex flex-col max-w-[960px]">
        <div class="flex flex-wrap justify-between gap-3 py-4">
            <h2 class="text-primary100 font-main text-size-subtitle font-medium">Reglas de sección</h2>
            <?php if (isset($component)) { $__componentOriginal8565cc6e3559fc0755ba5bce504752a5 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal8565cc6e3559fc0755ba5bce504752a5 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.controls.button','data' => ['href' => ''.e(route('superadmin.section-rules.create')).'','variant' => 'primary']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('controls.button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => ''.e(route('superadmin.section-rules.create')).'','variant' => 'primary']); ?>
                Añadir regla
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal8565cc6e3559fc0755ba5bce504752a5)): ?>
<?php $attributes = $__attributesOriginal8565cc6e3559fc0755ba5bce504752a5; ?>
<?php unset($__attributesOriginal8565cc6e3559fc0755ba5bce504752a5); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8565cc6e3559fc0755ba5bce504752a5)): ?>
<?php $component = $__componentOriginal8565cc6e3559fc0755ba5bce504752a5; ?>
<?php unset($__componentOriginal8565cc6e3559fc0755ba5bce504752a5); ?>
<?php endif; ?>
        </div>
        <div class="py-3">
            <?php if (isset($component)) { $__componentOriginal1225fd4ba77114871882f9a9e53eeab5 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal1225fd4ba77114871882f9a9e53eeab5 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.tables.table-with-pagination','data' => ['columns' => $columns,'items' => $rules]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('tables.table-with-pagination'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['columns' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($columns),'items' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($rules)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal1225fd4ba77114871882f9a9e53eeab5)): ?>
<?php $attributes = $__attributesOriginal1225fd4ba77114871882f9a9e53eeab5; ?>
<?php unset($__attributesOriginal1225fd4ba77114871882f9a9e53eeab5); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal1225fd4ba77114871882f9a9e53eeab5)): ?>
<?php $component = $__componentOriginal1225fd4ba77114871882f9a9e53eeab5; ?>
<?php unset($__componentOriginal1225fd4ba77114871882f9a9e53eeab5); ?>
<?php endif; ?>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale9b1828e76ebe0c7e000efe9977b8aa6)): ?>
<?php $attributes = $__attributesOriginale9b1828e76ebe0c7e000efe9977b8aa6; ?>
<?php unset($__attributesOriginale9b1828e76ebe0c7e000efe9977b8aa6); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale9b1828e76ebe0c7e000efe9977b8aa6)): ?>
<?php $component = $__componentOriginale9b1828e76ebe0c7e000efe9977b8aa6; ?>
<?php unset($__componentOriginale9b1828e76ebe0c7e000efe9977b8aa6); ?>
<?php endif; ?>
<?php /**PATH C:\laragon\www\housecontract\resources\views/superadmin/section-rule/index.blade.php ENDPATH**/ ?>