Viewing file: 41390d3b1927faf782ca7114295e98e2.php (5.29 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div ref="sidebar" class="duration-80 fixed top-[60px] z-[10002] h-full w-[200px] border-gray-200 bg-white pt-4 transition-all group-[.sidebar-collapsed]/container:w-[70px] dark:border-gray-800 dark:bg-gray-900 max-lg:hidden ltr:border-r rtl:border-l" @mouseover="handleMouseOver" @mouseleave="handleMouseLeave" > <div class="journal-scroll h-[calc(100vh-100px)] overflow-hidden group-[.sidebar-collapsed]/container:overflow-visible"> <nav class="sidebar-rounded grid w-full gap-2"> <!-- Navigation Menu --> <?php $__currentLoopData = menu()->getItems('admin'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $menuItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="px-4 group/item <?php echo e($menuItem->isActive() ? 'active' : 'inactive'); ?>"> <a class="flex gap-2 p-1.5 items-center cursor-pointer hover:rounded-lg <?php echo e($menuItem->isActive() == 'active' ? 'bg-brandColor rounded-lg' : ' hover:bg-gray-100 hover:dark:bg-gray-950'); ?> peer" href="<?php echo e(! in_array($menuItem->getKey(), ['settings', 'configuration']) && $menuItem->haveChildren() ? 'javascript:void(0)' : $menuItem->getUrl()); ?>" @mouseleave="!isMenuActive ? hoveringMenu = '' : {}" @mouseover="hoveringMenu='<?php echo e($menuItem->getKey()); ?>'" @click="isMenuActive = !isMenuActive" > <span class="<?php echo e($menuItem->getIcon()); ?> text-2xl <?php echo e($menuItem->isActive() ? 'text-white' : ''); ?>"></span>
<div class="flex-1 flex justify-between items-center text-gray-600 dark:text-gray-300 font-medium whitespace-nowrap group-[.sidebar-collapsed]/container:hidden <?php echo e($menuItem->isActive() ? 'text-white' : ''); ?> group"> <p><?php echo e(core()->getConfigData('general.settings.menu.'.$menuItem->getKey()) ?? $menuItem->getName()); ?></p> <?php if( ! in_array($menuItem->getKey(), ['settings', 'configuration']) && $menuItem->haveChildren()): ?> <i class="icon-right-arrow rtl:icon-left-arrow invisible text-2xl group-hover/item:visible <?php echo e($menuItem->isActive() ? 'text-white' : ''); ?>"></i> <?php endif; ?> </div> </a>
<!-- Submenu --> <?php if( ! in_array($menuItem->getKey(), ['settings', 'configuration']) && $menuItem->haveChildren() ): ?> <div class="absolute top-0 hidden flex-col bg-gray-100 ltr:left-[200px] rtl:right-[199px]" :class="[isMenuActive && (hoveringMenu == '<?php echo e($menuItem->getKey()); ?>') ? '!flex' : 'hidden']" > <div class="sidebar-rounded fixed z-[1000] h-full min-w-[140px] max-w-max bg-white pt-4 after:-right-[30px] dark:border-gray-800 dark:bg-gray-900 max-lg:hidden ltr:border-r rtl:border-x"> <div class="journal-scroll h-[calc(100vh-100px)] overflow-hidden"> <nav class="grid w-full gap-2"> <?php $__currentLoopData = $menuItem->getChildren(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subMenuItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="px-4 group/item <?php echo e($menuItem->isActive() ? 'active' : 'inactive'); ?>"> <a href="<?php echo e($subMenuItem->getUrl()); ?>" class="flex gap-2.5 p-2 items-center cursor-pointer hover:rounded-lg <?php echo e($subMenuItem->isActive() == 'active' ? 'bg-brandColor rounded-lg' : ' hover:bg-gray-100 hover:dark:bg-gray-950'); ?> peer" > <p class="text-gray-600 dark:text-gray-300 font-medium whitespace-nowrap <?php echo e($subMenuItem->isActive() ? 'text-white' : ''); ?>"> <?php echo e(core()->getConfigData('general.settings.menu.'.$subMenuItem->getKey()) ?? $subMenuItem->getName()); ?>
</p> </a> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </nav> </div> </div> </div> <?php endif; ?> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </nav> </div> </div><?php /**PATH C:\xampp\htdocs\laravel-crm\packages\Webkul\Admin\src/resources/views/components/layouts/sidebar/desktop/index.blade.php ENDPATH**/ ?>
|