<div>
    <button type="button" class="btn btn-light btn-active-light-primary btn-sm" data-kt-menu-trigger="click" data-kt-menu-placement="bottom-end" data-kt-menu-flip="top-end">
        الإعدادات
    </button>
    <div class="menu menu-sub menu-sub-dropdown menu-column menu-rounded menu-gray-600 menu-state-bg-light-primary fw-bold fs-7 mw-150px py-4" data-kt-menu="true">
        <?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php
                $show = true;
                if ($option['permission'] != false && search_route_to_permissions($option['permission'], $myPermissions) == false) {
                    $show = false;
                }
                foreach ($option['conditions'] as $condition) {
                    if (($condition['type'] == '==' && !in_array($data[$condition['column']], $condition['value']))) {
                        $show = false;
                    }
                    if ($condition['type'] == '!=' && in_array($data[$condition['column']], $condition['value'])) {
                        $show = false;
                    }
                }
                $columnId = $option['columnId'];
                if(isset($option['params_per'])){
                    $option['params_per'][$columnId] = $data[$columnId];
                    $route = route($option['route'],$option['params_per']);
                }else{
                    $route = ($option['id'] == 'inside' ? route($option['route'], $data[$columnId]) : route($option['route']).'?'.$columnId.'='.$data[$columnId]);
                    if(isset($option['params']))
                    {
                        $route .= $option['params'];
                    }
                }
                
                
            ?>
            <?php if($show == true): ?>
                <div class="menu-item px-3">
                    <a <?php echo $option['type'] != 'directly' ? 'role="button" data-ajax="'.$route.'"' : 'href="'.$route.'"'; ?> <?php echo $option['type'] == 'sweet_alert' ? 'data-sweet-alert="'.$option['sweetAlert'].'"' : ''; ?> class="menu-link px-3 <?php echo $option['type'] == 'popup' ? 'openModalAddEdit' : ($option['type'] == 'sweet_alert' ? 'sweerAlert' : ''); ?>">
                        <?php echo e($option['title']); ?>

                    </a>
                </div>
            <?php endif; ?>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
</div>
<?php /**PATH /Users/haladigitally/Desktop/TR/operations_manager/resources/views/datatable/settings.blade.php ENDPATH**/ ?>