
<?php if($configData['mainLayoutType'] == 'vertical-menu'): ?>
<div class="main-menu menu-fixed <?php if($configData['theme'] === 'light'): ?> <?php echo e("menu-light"); ?> <?php else: ?> <?php echo e('menu-dark'); ?> <?php endif; ?> menu-accordion menu-shadow" data-scroll-to-active="true">
      <div class="navbar-header">
      <ul class="nav navbar-nav flex-row">
      <li class="nav-item mr-auto">
          <a class="navbar-brand" href="<?php echo e(asset('/')); ?>">
          <div class="brand-logo">
            <img src="<?php echo e(asset('images/logo/fakfak.png')); ?>" width="26px" height="56px" class="logo" alt="">
          </div>
          <h2 class="brand-text text-danger mb-0">
            <?php if(!empty($configData['templateTitle']) && isset($configData['templateTitle'])): ?>
            <?php echo e($configData['templateTitle']); ?>

            <?php else: ?>
            Wagom
            <?php endif; ?>
          </h2>
          </a>
      </li>
          <li class="nav-item nav-toggle">
          <a class="nav-link modern-nav-toggle pr-0" data-toggle="collapse">
            <i class="bx bx-x d-block d-xl-none font-medium-4 danger"></i>
            <i class="toggle-icon bx bx-disc font-medium-4 d-none d-xl-block danger" data-ticon="bx-disc"></i>
          </a>
          </li>
      </ul>
      </div>
      <div class="shadow-bottom"></div>
      <div class="main-menu-content">
      <ul class="navigation navigation-main" id="main-menu-navigation" data-menu="menu-navigation" data-icon-style="lines">
          <li class="nav-item <?php echo e((request()->is('home*')) ? 'active' : ''); ?>">
            <a href="<?php echo e(route('home')); ?>">
              <i class="menu-livicon" data-icon="desktop"></i>
              <span class="menu-title"><?php echo e(__('Dashboard')); ?></span>
            </a>
          </li>
          <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('lihat surat')): ?>
          <li class="navigation-header"><span>Surat</span></li>
          <li class="nav-item <?php echo e((request()->is('sktm*')) ? 'active' : ''); ?>">
            <a href="<?php echo e(route('sktm.index')); ?>">
              <i class="menu-livicon" data-icon="notebook"></i>
              <span class="menu-title"><?php echo e(__('SKTM')); ?></span>
            </a>
          </li>
          <li class="nav-item <?php echo e((request()->is('skd')) ? 'active' : ''); ?>">
            <a href="<?php echo e(route('skd.index')); ?>">
              <i class="menu-livicon" data-icon="notebook"></i>
              <span class="menu-title"><?php echo e(__('SKD')); ?></span>
            </a>
          </li>
          <li class="nav-item <?php echo e((request()->is('spk*')) ? 'active' : ''); ?>">
            <a href="<?php echo e(route('spk.index')); ?>">
              <i class="menu-livicon" data-icon="notebook"></i>
              <span class="menu-title"><?php echo e(__('SPK')); ?></span>
            </a>
          </li>
          <li class="nav-item <?php echo e((request()->is('skdu*')) ? 'active' : ''); ?>">
            <a href="<?php echo e(route('skdu.index')); ?>">
              <i class="menu-livicon" data-icon="notebook"></i>
              <span class="menu-title"><?php echo e(__('SKDU')); ?></span>
            </a>
          </li>
          <li class="nav-item <?php echo e((request()->is('skbpm*')) ? 'active' : ''); ?>">
            <a href="<?php echo e(route('skbpm.index')); ?>">
              <i class="menu-livicon" data-icon="notebook"></i>
              <span class="menu-title"><?php echo e(__('SKBPM')); ?></span>
            </a>
          </li>
          <li class="nav-item <?php echo e((request()->is('skpd*')) ? 'active' : ''); ?>">
            <a href="<?php echo e(route('skpd.index')); ?>">
              <i class="menu-livicon" data-icon="notebook"></i>
              <span class="menu-title"><?php echo e(__('SKPD')); ?></span>
            </a>
          </li>
          <li class="nav-item <?php echo e((request()->is('skl*')) ? 'active' : ''); ?>">
            <a href="<?php echo e(route('skl.index')); ?>">
              <i class="menu-livicon" data-icon="notebook"></i>
              <span class="menu-title"><?php echo e(__('SKL')); ?></span>
            </a>
          </li>
          <li class="nav-item <?php echo e((request()->is('skkp*')) ? 'active' : ''); ?>">
            <a href="<?php echo e(route('skkp.index')); ?>">
              <i class="menu-livicon" data-icon="notebook"></i>
              <span class="menu-title"><?php echo e(__('SKKP')); ?></span>
            </a>
          </li>
          <li class="nav-item <?php echo e((request()->is('skmb*')) ? 'active' : ''); ?>">
            <a href="<?php echo e(route('skmb.index')); ?>">
              <i class="menu-livicon" data-icon="notebook"></i>
              <span class="menu-title"><?php echo e(__('SKMB')); ?></span>
            </a>
          </li>
          <li class="nav-item <?php echo e((request()->is('skjd*')) ? 'active' : ''); ?>">
            <a href="<?php echo e(route('skjd.index')); ?>">
              <i class="menu-livicon" data-icon="notebook"></i>
              <span class="menu-title"><?php echo e(__('SKJD')); ?></span>
            </a>
          </li>
          <?php endif; ?>
          <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('lihat pengguna')): ?>
          <li class="navigation-header"><span>Pengaturan</span></li>
          <li class="nav-item <?php echo e((request()->is('user*')) ? 'active' : ''); ?>">
            <a href="<?php echo e(route('user.index')); ?>">
              <i class="menu-livicon" data-icon="users"></i>
              <span class="menu-title"><?php echo e(__('Pengguna')); ?></span>
            </a>
          </li>
          <?php endif; ?>
          <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('lihat role')): ?>
          <li class="nav-item <?php echo e((request()->is('role*')) ? 'active' : ''); ?>">
            <a href="<?php echo e(route('role.index')); ?>">
              <i class="menu-livicon" data-icon="lock"></i>
              <span class="menu-title"><?php echo e(__('Role')); ?></span>
            </a>
          <!-- <ul class="menu-content">
              <?php if(isset($menu)): ?>
                <?php $__currentLoopData = $menu; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $submenu): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <li <?php echo e((request()->is($submenu->url.'*')) ? 'class=active' : ''); ?>>
                    <a href="<?php if(isset($submenu->url)): ?> <?php echo e(asset($submenu->url)); ?> <?php endif; ?>" <?php if(isset($submenu->newTab)): ?><?php echo e("target=_blank"); ?><?php endif; ?>>
                      <i class="bx bx-right-arrow-alt"></i>
                    <span class="menu-item"><?php echo e(__('locale.'.$submenu->name)); ?></span>
                    </a>
                    <?php if(isset($submenu->submenu)): ?>
                      <?php echo $__env->make('panels.sidebar-submenu',['menu'=>$submenu->submenu], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    <?php endif; ?>
                  </li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              <?php endif; ?>
          </ul> -->
          </li>
          <?php endif; ?>
      </ul>
      </div>
  </div>
<?php endif; ?>

<?php if($configData['mainLayoutType'] == 'horizontal-menu'): ?>
<div class="header-navbar navbar-expand-sm navbar navbar-horizontal navbar-light navbar-without-dd-arrow
<?php if($configData['navbarType'] === 'navbar-static'): ?> <?php echo e('navbar-sticky'); ?> <?php endif; ?>" role="navigation" data-menu="menu-wrapper">
  <div class="navbar-header d-xl-none d-block">
      <ul class="nav navbar-nav flex-row">
      <li class="nav-item mr-auto">
          <a class="navbar-brand" href="<?php echo e(asset('/')); ?>">
          <div class="brand-logo">
            <img src="<?php echo e(asset('images/logo/logofakfak.png')); ?>" class="logo" alt="">
          </div>
          <h2 class="brand-text mb-0">
            <?php if(!empty($configData['templateTitle']) && isset($configData['templateTitle'])): ?>
            <?php echo e($configData['templateTitle']); ?>

            <?php else: ?>
            Wagom
            <?php endif; ?>
          </h2>
          </a>
      </li>
      <li class="nav-item nav-toggle">
          <a class="nav-link modern-nav-toggle pr-0" data-toggle="collapse">
          <i class="bx bx-x d-block d-xl-none font-medium-4 primary toggle-icon"></i>
          </a>
      </li>
      </ul>
  </div>
  <div class="shadow-bottom"></div>
  <!-- Horizontal menu content-->
  <div class="navbar-container main-menu-content" data-menu="menu-container">
      <ul class="nav navbar-nav" id="main-menu-navigation" data-menu="menu-navigation" data-icon-style="filled">
      <?php if(!empty($menuData[1]) && isset($menuData[1])): ?>
          <?php $__currentLoopData = $menuData[1]->menu; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $menu): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
          <li class="<?php if(isset($menu->submenu)): ?><?php echo e('dropdown'); ?> <?php endif; ?> nav-item" data-menu="dropdown">
          <a class="<?php if(isset($menu->submenu)): ?><?php echo e('dropdown-toggle'); ?> <?php endif; ?> nav-link" href="<?php echo e(asset($menu->url)); ?>"
            <?php if(isset($menu->submenu)): ?><?php echo e('data-toggle=dropdown'); ?> <?php endif; ?> <?php if(isset($menu->newTab)): ?><?php echo e("target=_blank"); ?><?php endif; ?>>
              <i class="menu-livicon" data-icon="<?php echo e($menu->icon); ?>"></i>
              <span><?php echo e(__('locale.'.$menu->name)); ?></span>
          </a>
          <?php if(isset($menu->submenu)): ?>
              <?php echo $__env->make('panels.sidebar-submenu',['menu'=>$menu->submenu], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
          <?php endif; ?>
          </li>
          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
      <?php endif; ?>
      </ul>
  </div>
  <!-- /horizontal menu content-->
  </div>
<?php endif; ?>


<?php if($configData['mainLayoutType'] == 'vertical-menu-boxicons'): ?>
<div class="main-menu menu-fixed <?php if($configData['theme'] === 'light'): ?> <?php echo e("menu-light"); ?> <?php else: ?> <?php echo e('menu-dark'); ?> <?php endif; ?> menu-accordion menu-shadow" data-scroll-to-active="true">
  <div class="navbar-header">
    <ul class="nav navbar-nav flex-row">
    <li class="nav-item mr-auto">
      <a class="navbar-brand" href="<?php echo e(asset('/')); ?>">
        <div class="brand-logo">
          <img src="<?php echo e(asset('images/logo/logofakfak.png')); ?>" class="logo" alt="">
        </div>
        <h2 class="brand-text mb-0">
          <?php if(!empty($configData['templateTitle']) && isset($configData['templateTitle'])): ?>
          <?php echo e($configData['templateTitle']); ?>

          <?php else: ?>
          Wagom
          <?php endif; ?>
        </h2>
      </a>
    </li>
    <li class="nav-item nav-toggle"><a class="nav-link modern-nav-toggle pr-0" data-toggle="collapse"><i class="bx bx-x d-block d-xl-none font-medium-4 primary toggle-icon"></i><i class="toggle-icon bx bx-disc font-medium-4 d-none d-xl-block collapse-toggle-icon primary" data-ticon="bx-disc"></i></a></li>
    </ul>
  </div>
  <div class="shadow-bottom"></div>
  <div class="main-menu-content">
    <ul class="navigation navigation-main" id="main-menu-navigation" data-menu="menu-navigation" data-icon-style="">
      <?php if(!empty($menuData[2]) && isset($menuData[2])): ?>
      <?php $__currentLoopData = $menuData[2]->menu; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $menu): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
          <?php if(isset($menu->navheader)): ?>
              <li class="navigation-header"><span><?php echo e($menu->navheader); ?></span></li>
          <?php else: ?>
          <li class="nav-item <?php echo e((request()->is($menu->url.'*')) ? 'active' : ''); ?>">
            <a href="<?php if(isset($menu->url)): ?><?php echo e(asset($menu->url)); ?> <?php endif; ?>" <?php if(isset($menu->newTab)): ?><?php echo e("target=_blank"); ?><?php endif; ?>>
            <?php if(isset($menu->icon)): ?>
              <i class="<?php echo e($menu->icon); ?>"></i>
            <?php endif; ?>
            <?php if(isset($menu->name)): ?>
              <span class="menu-title"><?php echo e(__('locale.'.$menu->name)); ?></span>
            <?php endif; ?>
            <?php if(isset($menu->tag)): ?>
              <span class="<?php echo e($menu->tagcustom); ?>"><?php echo e($menu->tag); ?></span>
            <?php endif; ?>
           </a>
          <?php if(isset($menu->submenu)): ?>
            <?php echo $__env->make('panels.sidebar-submenu',['menu' => $menu->submenu], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
          <?php endif; ?>
          </li>
          <?php endif; ?>
      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
      <?php endif; ?>
  </ul>
  </div>
</div>
<?php endif; ?>
<?php /**PATH /Users/mac/laravel-projects/wagom/resources/views/panels/sidebar.blade.php ENDPATH**/ ?>