<!-- Nav items -->
<?php
  $modules =  array_diff(scandir(base_path('Modules')), array('..', '.'));
  $modules_nodes = [];


  foreach($modules as $module){
    if(file_exists(base_path('Modules/'.$module).'/module.json')){
       $modules_path = file_get_contents(base_path('Modules/'.$module).'/module.json');
       $module_json = json_decode($modules_path);
       if($module_json->status == true){
       if(isset($module_json->module_type)){
          if($module_json->module_type == 'features'){
            array_push($modules_nodes, $module_json);
          }
          
      }
     }
    }   
    
  }
  asort($modules_nodes);
 
  $menuItems = [];

  foreach($modules_nodes as $modules_node){
    $menuItems[$modules_node->name] = $modules_node->user_menu;
  } 
?>

 <?php
 $itemNo = 0;
 ?>
 <?php $__currentLoopData = $menuItems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $menuItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

 <?php
 $itemNo = $itemNo+1;

 ?>

 <?php if($itemNo > 1 && count($menuItem) > 0): ?>
 <hr class="my-3 mt-2">
 <!-- Heading -->
 <h6 class="navbar-heading p-0 text-muted"><?php echo e(__($key)); ?></h6>
 <?php endif; ?>


 <ul class="navbar-nav">
  <?php $__currentLoopData = $menuItem; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  <li class="nav-item">
    <a class="nav-link <?php echo e(Request::is($item->request) ? 'active' : ''); ?>" href="<?php echo e($item->route_type  == 'route' ?  route($item->route) : url($item->route)); ?>">
     <i class="<?php echo e($item->icon); ?>"></i>
      <span class="nav-link-text"><?php echo e(__($item->name)); ?></span>
    </a>
  </li>
  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  </ul>
  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


<!-- Divider -->
<hr class="my-3 mt-6">
<!-- Heading -->
<h6 class="navbar-heading p-0 text-muted"><?php echo e(__('Settings')); ?></h6>
<!-- Navigation -->
<ul class="navbar-nav mb-md-3">
  <li class="nav-item">
    <a class="nav-link <?php echo e(Request::is('user/subscription*') ? 'active' : ''); ?>" href="<?php echo e(url('/user/subscription')); ?>">
      <i class="ni ni-spaceship"></i>
      <span class="nav-link-text"><?php echo e(__('Subscription')); ?></span>
    </a>
  </li>
  <li class="nav-item">
    <a class="nav-link <?php echo e(Request::is('user/support*') ? 'active' : ''); ?>" href="<?php echo e(url('/user/support')); ?>" >
      <i class="fas fa-headset"></i>
      <span class="nav-link-text"><?php echo e(__('Help & Support')); ?></span>
    </a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="<?php echo e(url('/user/profile')); ?>">
      <i class="ni ni-settings-gear-65"></i>
      <span class="nav-link-text"><?php echo e(__('Profile Settings')); ?></span>
    </a>
  </li>
   <li class="nav-item">
    <a class="nav-link <?php echo e(Request::is('user/auth-key*') ? 'active' : ''); ?>" href="<?php echo e(url('/user/auth-key')); ?>">
      <i class="ni ni-key-25"></i>
      <span class="nav-link-text"><?php echo e(__('Auth Key')); ?></span>
    </a>
  </li>
  <li class="nav-item">
    <a class="nav-link logout-button" href="#" >
      <i class="ni ni-button-power"></i>
      <span class="nav-link-text"><?php echo e(__('Logout')); ?></span>
    </a>
  </li>
</ul>
<?php /**PATH /Users/rifat/Downloads/codecanyon-mBQw2Has-wasender-whatsapp-server-and-bulk-sender-saas/whatsender/resources/views/layouts/main/user.blade.php ENDPATH**/ ?>