<div class="dropdown">

    <?php
        $ex = getCurrentExercice() ;
        $class = (isset($ex->is_closed) && $ex->is_closed)? 'btn-danger' : 'btn-primary';
        $exercice = (isset($ex->exercice))? $ex->exercice : "";
    ?>
   
   <!-- __BLOCK__ --><?php if($ExChange): ?>
        <a 
            class="btn <?php echo e($class); ?> dropdown-toggle btn-sm"
            href="#"
            role="button"
            data-toggle="dropdown"
        >
            <span wire:loading.remove wire:target="changeExercice" > Exercice <?php echo e($exercice); ?></span>

            <div class="spinner-border spinner-border-sm"  role="status" wire:loading wire:target="changeExercice">
                <span class="visually-hidden"></span>
            </div>
        </a>
    
        <div class="dropdown-menu" style="width: 5px;">
            <!-- __BLOCK__ --><?php $__currentLoopData = $lists; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <a class="dropdown-item" wire:click="changeExercice(<?php echo e($list->exercice); ?>)"
                    style="cursor: pointer;" 
                    > 
                    &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <?php echo e($list->exercice); ?>

                </a>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <!-- __ENDBLOCK__ -->
        </div>
    <?php else: ?>
        <a 
        class="btn <?php echo e($class); ?> btn-sm"
        href="#"
        role="button"
        data-toggle="dropdown"
        >
        <span > Exercice <?php echo e($exercice); ?></span>
        </a>

    <?php endif; ?> <!-- __ENDBLOCK__ -->
</div><?php /**PATH D:\laravel_apps\access\resources\views/livewire/list-exercice.blade.php ENDPATH**/ ?>