<ul class="navbar-nav bg-gradient-success sidebar sidebar-dark accordion" id="accordionSidebar">
    <!-- Sidebar - Brand -->
    <a class="sidebar-brand d-flex align-items-center justify-content-center" href="<?php echo e(route('admin.index')); ?>">
        <div class="sidebar-brand-icon rotate-n-15"></div>
        <div class="sidebar-brand-text mx-3">
            <img src="<?php echo e(url("img/logo-bw.png")); ?>" alt="" style="height: 60px; width:150px;">
        </div>
    </a>

    <hr class="sidebar-divider my-0">

    <li class="nav-item shadow">
        <a class="nav-link" href="<?php echo e(route('admin.index')); ?>">
            <i class="fas fa-fw fa-tachometer-alt"></i>
            <span><?php echo e(__("Dashboard")); ?></span></a>
    </li>
    <hr class="sidebar-divider">


    <div class="sidebar-heading">
        Interface
    </div>



     <?php $links = config("admin-links-menus") ?>
    <!-- Nav Item - Pages Collapse Menu -->
    <?php $__empty_1 = true; $__currentLoopData = $links; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $link): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
        <?php if(isset($link['sub-menus'])): ?>

            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any($link['permissions'])): ?>
                <?php if(isset($link['active']) and $link['active']): ?>
                  
                    <li class="nav-item shadow">
                        <a class="nav-link collapsed" href="#"
                           data-toggle="collapse"
                           data-target="#collapse<?php echo e($link['as']); ?>"
                           aria-expanded="true"
                           aria-controls="collapse<?php echo e($link['as']); ?>">
                            <i class="<?php echo e($link['icon']); ?>"></i>
                            <span><?php echo e(__($link['title'])); ?></span>
                        </a>
                        <div id="collapse<?php echo e($link['as']); ?>" class="collapse"
                             aria-labelledby="headingTwo"
                             data-parent="#accordionSidebar">
                            <div class="bg-white py-2 collapse-inner rounded">
                                <?php $__currentLoopData = $link['sub-menus']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sub): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    
                                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any($sub['permissions'])): ?>
                                      <?php if(in_array($sub['to'], $routes_name)): ?>

                                          <?php if(isset($link['active']) and $link['active']): ?>
                                              <?php
                                                  $route = (isset($sub['routeParams'])) ? route($sub['to'],$sub['routeParams']) : route($sub['to']);
                                              ?>
                                              <a class="collapse-item" href="<?php echo e($route); ?>">
                                                  <i class="<?php echo e($sub['icon'] ?? ""); ?>"></i>
                                                  <span><?php echo e(__($sub['title'])); ?></span>
                                              </a>
                                          <?php endif; ?>
                                      <?php endif; ?>
                                  <?php endif; ?>
                              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                          </div>
                      </div>
                  </li>
                  
              <?php endif; ?>
            <?php endif; ?>
      <?php else: ?>
          <?php if(isset($link['active']) and $link['active']): ?>
              <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any($link['permissions'])): ?>
              
                <li class="nav-item shadow">
                    <a class="nav-link <?php echo e((Route::currentRouteName() == $link['to']) ? "active":""); ?>"
                       href="<?php echo e((in_array($link['to'], $routes_name))? route($link['to']) :"#"); ?>">
                        <i class="<?php echo e($link['icon']); ?>"></i>
                        <span><?php echo e(__($link['title'])); ?></span>
                    </a>
                </li>
                
            <?php endif; ?>
        <?php endif; ?>
    <?php endif; ?>

<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<?php endif; ?>
<!-- Divider -->
<hr class="sidebar-divider">
<!-- Heading -->
<div class="sidebar-heading"></div>
<!-- Sidebar Toggler (Sidebar) -->
<div class="text-center d-none d-md-inline">
    <button class="rounded-circle border-0" id="sidebarToggle"></button>
</div>
</ul>
<?php /**PATH /home2/lekruu/public_html/resources/views/partials/backend/sidebar.blade.php ENDPATH**/ ?>