<?php if($contracts->isNotEmpty()): ?>
    <ul class="space-y-2">
        <?php $__currentLoopData = $contracts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $contract): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <li x-data="{ open: false }" class="block">
                
                <button
                    @click="open = !open" 
                    class="item-menu-nav w-full flex justify-between items-center hover:!bg-white"
                >
                    <?php echo e($contract->name); ?>

                    
                    
                    <?php if (isset($component)) { $__componentOriginalb812c3d4fc32bd0e54d75382d6e107c7 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb812c3d4fc32bd0e54d75382d6e107c7 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icons.arrow-down','data' => ['class' => 'transition-transform duration-300 text-current']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('icons.arrow-down'); ?>
<?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(['class' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('transition-transform duration-300 text-current')]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalb812c3d4fc32bd0e54d75382d6e107c7)): ?>
<?php $attributes = $__attributesOriginalb812c3d4fc32bd0e54d75382d6e107c7; ?>
<?php unset($__attributesOriginalb812c3d4fc32bd0e54d75382d6e107c7); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb812c3d4fc32bd0e54d75382d6e107c7)): ?>
<?php $component = $__componentOriginalb812c3d4fc32bd0e54d75382d6e107c7; ?>
<?php unset($__componentOriginalb812c3d4fc32bd0e54d75382d6e107c7); ?>
<?php endif; ?>
                </button>

                
                <ul 
                    x-show="open" 
                    x-transition 
                    class="mt-2 ml-4 space-y-1"
                >
                    <?php if($contract->sections->isNotEmpty()): ?>
                        <?php $__currentLoopData = $contract->sections; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $section): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li>
                                <?php if (isset($component)) { $__componentOriginal7e0186e860361050546cc182608bf7dc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7e0186e860361050546cc182608bf7dc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.menu.link','data' => ['route' => 'contract-sections.index','params' => ['idTemplateSection' => $section->id]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('menu.link'); ?>
<?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(['route' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('contract-sections.index'),'params' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['idTemplateSection' => $section->id])]); ?>
                                    <?php echo e($section->title); ?>

                                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7e0186e860361050546cc182608bf7dc)): ?>
<?php $attributes = $__attributesOriginal7e0186e860361050546cc182608bf7dc; ?>
<?php unset($__attributesOriginal7e0186e860361050546cc182608bf7dc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7e0186e860361050546cc182608bf7dc)): ?>
<?php $component = $__componentOriginal7e0186e860361050546cc182608bf7dc; ?>
<?php unset($__componentOriginal7e0186e860361050546cc182608bf7dc); ?>
<?php endif; ?>
                            </li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php endif; ?>
                </ul>
            </li>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </ul>
<?php endif; ?><?php /**PATH /home/cnllsandbox/public_html/house-contract.cnll-sandbox.com/resources/views/components/menu/sidebar-contracts.blade.php ENDPATH**/ ?>