<aside id="layout-menu" class="layout-menu menu-vertical menu">
  <div class="app-brand demo">
    <a href="<?php echo e(url('/')); ?>" class="app-brand-link">
      <span class="demo menu-text fw-bold site-logo-sidebar">
        <img src="<?php echo lpFaviconLogoUrl(asset('public/uploads/whitelabel/' . (session('white_label.site_logo') ?? 'initial-logo.png'))); ?>" alt="Site-Logo">
      </span>
    </a>

    <a href="javascript:void(0);" class="layout-menu-toggle menu-link text-large ms-auto">
      <i class="icon-base ti menu-toggle-icon d-none d-xl-block"></i>
      <i class="icon-base ti tabler-x d-block d-xl-none"></i>
    </a>
  </div>

  <div class="menu-inner-shadow"></div>

  <ul class="menu-inner py-1">
    <!-- Dashboards -->
    <li class="menu-item <?php echo e(request()->is('user-home') ? 'active' : ''); ?>">
      <a href="<?php echo e(url('/user-home')); ?>" class="menu-link">
        <i class="menu-icon icon-base ti tabler-home"></i>
        <div><?php echo e(__('Home')); ?></div>
      </a>
    </li>

    <?php if(Auth::user()->can('dashboard-dashboard')): ?>
    <li class="menu-item <?php echo e(request()->is('dashboard') ? 'active' : ''); ?>">
      <a href="<?php echo e(url('/dashboard')); ?>" class="menu-link">
        <i class="menu-icon icon-base ti tabler-gauge"></i>
        <div><?php echo e(__('Dashboard')); ?></div>
      </a>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('booking-list')): ?>
    <li class="menu-item <?php echo e(request()->is('booking') ? 'active' : ''); ?>">
      <a href="<?php echo e(url('/booking')); ?>" class="menu-link">
        <i class="menu-icon icon-base ti tabler-calendar"></i>
        <div><?php echo e(__('Booking')); ?></div>
      </a>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('outlet-list') || Auth::user()->can('outlet-create') || Auth::user()->can('outlet-edit') || Auth::user()->can('outlet-destroy')): ?>
    <li class="menu-item <?php echo e(request()->is('outlet*') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-layout-grid"></i>
        <div><?php echo e(__('Outlet')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('outlet-create')): ?>
        <li class="menu-item <?php echo e(request()->is('outlet/create') || request()->is('outlet/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('outlet.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Outlet')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('outlet-list')): ?>
        <li class="menu-item <?php echo e(request()->is('outlet') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('outlet.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Outlet')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>

    <?php if(Auth::user()->can('item-list') || Auth::user()->can('item-create') || Auth::user()->can('item-import') || Auth::user()->can('category-list') || Auth::user()->can('category-create') || Auth::user()->can('brand-list') || Auth::user()->can('brand-create') || Auth::user()->can('unit-list') || Auth::user()->can('unit-create') || Auth::user()->can('rack-list') || Auth::user()->can('rack-create') || Auth::user()->can('variation_attribute-list') || Auth::user()->can('variation_attribute-create') || Auth::user()->can('stock-stock') || Auth::user()->can('stock-low_stock') || Auth::user()->can('opening-stock-import')): ?>
    <!-- Item & Stock: header only when at least one menu in group is visible -->
    <li class="menu-header small">
      <span class="menu-header-text"><?php echo e(__('Item & Stock')); ?></span>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('item-list') || Auth::user()->can('item-create') || Auth::user()->can('item-import')): ?>
    <li class="menu-item <?php echo e(request()->is('item/create') || request()->is('item/*/edit') || request()->is('bulk-item-import') || request()->is('item') || request()->is('item/*/show') || request()->is('bulk-item-update') || request()->is('opening-stock-import') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-heart-pin"></i>
        <div><?php echo e(__('Item')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('item-create')): ?>
        <li class="menu-item <?php echo e(request()->is('item/create') || request()->is('item/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('item.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Item')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('item-list')): ?>
        <li class="menu-item <?php echo e(request()->is('item') || request()->is('item/*/show') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('item.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Item')); ?></div>
          </a>
        </li>
        <li class="menu-item <?php echo e(request()->is('bulk-item-update') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('bulk-item-update')); ?>" class="menu-link">
            <div><?php echo e(__('Bulk Item Update')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('item-import')): ?>
        <li class="menu-item <?php echo e(request()->is('bulk-item-import') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('bulk-item-import')); ?>" class="menu-link">
            <div><?php echo e(__('Bulk Item Import')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('item-import')): ?>
        <li class="menu-item <?php echo e(request()->is('opening-stock-import') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('opening-stock-import')); ?>" class="menu-link">
            <div><?php echo e(__('Opening Stock Import')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('category-list') || Auth::user()->can('category-create') || Auth::user()->can('brand-list') || Auth::user()->can('unit-list') || Auth::user()->can('rack-list') || Auth::user()->can('variation_attribute-list')): ?>
    <li class="menu-item <?php echo e((request()->is('item-category*') || request()->is('brand*') || request()->is('unit*') || request()->is('rack*') || request()->is('variation-attribute*') || request()->is('item-category/sort-category')) ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-settings-heart"></i>
        <div><?php echo e(__('Item Configuration')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('category-create')): ?>
        <li class="menu-item <?php echo e(request()->is('item-category/create') || request()->is('item-category/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('item-category.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Item Category')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('category-list')): ?>
        <li class="menu-item <?php echo e(request()->is('item-category') || request()->is('item-category/sort-category') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('item-category.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Item Category')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('brand-create')): ?>
        <li class="menu-item <?php echo e(request()->is('brand/create') || request()->is('brand/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('brand.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Brand')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('brand-list')): ?>
        <li class="menu-item <?php echo e(request()->is('brand') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('brand.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Brand')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('unit-create')): ?>
        <li class="menu-item <?php echo e(request()->is('unit/create') || request()->is('unit/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('unit.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Unit')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('unit-list')): ?>
        <li class="menu-item <?php echo e(request()->is('unit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('unit.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Unit')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('rack-create')): ?>
        <li class="menu-item <?php echo e(request()->is('rack/create') || request()->is('rack/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('rack.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Rack')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('rack-list')): ?>
        <li class="menu-item <?php echo e(request()->is('rack') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('rack.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Rack')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('variation_attribute-create')): ?>
        <li class="menu-item <?php echo e(request()->is('variation-attribute/create') || request()->is('variation-attribute/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('variation-attribute.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Variation Attribute')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('variation_attribute-list')): ?>
        <li class="menu-item <?php echo e(request()->is('variation-attribute') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('variation-attribute.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Variation Attribute')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('stock-stock') || Auth::user()->can('stock-low_stock')): ?>
    <li class="menu-item <?php echo e((request()->is('stock') && !request()->is('stock/low-stock')) || request()->is('stock/low-stock') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-replace"></i>
        <div><?php echo e(__('Stock')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('stock-stock')): ?>
        <li class="menu-item <?php echo e(request()->is('stock') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('stock.index')); ?>" class="menu-link">
            <div><?php echo e(__('Stock')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('stock-low_stock')): ?>
        <li class="menu-item <?php echo e(request()->is('stock/low-stock') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('stock.low-stock')); ?>" class="menu-link">
            <div><?php echo e(__('Low')); ?> <?php echo e(__('Stock')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <!-- Sale Income -->
    <?php if(Auth::user()->can('sale-list') || Auth::user()->can('promotion-list') || Auth::user()->can('delivery_partner-list') || Auth::user()->can('customer-list') || Auth::user()->can('customer_receive-list') || Auth::user()->can('installment_sale-list') || Auth::user()->can('quotation-list') || Auth::user()->can('income-list')): ?>
    <li class="menu-header small">
      <span class="menu-header-text"><?php echo e(__('Sale & Customer')); ?></span>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('sale-list') || Auth::user()->can('promotion-list') || Auth::user()->can('delivery_partner-list')): ?>
    <li class="menu-item <?php echo e(request()->is('promotion*') || request()->is('delivery-partner*') || request()->is('pos*') || request()->is('sale') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-shopping-cart-heart"></i>
        <div><?php echo e(__('Sale')); ?></div>
      </a>
      <ul class="menu-sub">
        <li class="menu-item">
          <a href="<?php echo e(route('pos.index')); ?>" class="menu-link">
            <div><?php echo e(__('POS')); ?></div>
          </a>
        </li>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('sale-list')): ?>
        <li class="menu-item <?php echo e(request()->is('sale') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('sale.index')); ?>" class="menu-link">
            <div><?php echo e(__('List')); ?> <?php echo e(__('Sale')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('promotion-create')): ?>
        <li class="menu-item <?php echo e(request()->is('promotion/create') || request()->is('promotion/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('promotion.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add')); ?> <?php echo e(__('Promotion')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('promotion-list')): ?>
        <li class="menu-item <?php echo e(request()->is('promotion') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('promotion.index')); ?>" class="menu-link">
            <div><?php echo e(__('List')); ?> <?php echo e(__('Promotion')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('delivery_partner-create')): ?>
        <li class="menu-item <?php echo e(request()->is('delivery-partner/create') || request()->is('delivery-partner/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('delivery-partner.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add')); ?> <?php echo e(__('Delivery')); ?> <?php echo e(__('Partner')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('delivery_partner-list')): ?>
        <li class="menu-item <?php echo e(request()->is('delivery-partner') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('delivery-partner.index')); ?>" class="menu-link">
            <div><?php echo e(__('List')); ?> <?php echo e(__('Delivery')); ?> <?php echo e(__('Partner')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('sale-list') || Auth::user()->can('sale-create')): ?>
    <li class="menu-item <?php echo e(request()->is('sale-return*') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-u-turn-right"></i>
        <div><?php echo e(__('Sale Return')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('sale-create')): ?>
        <li class="menu-item <?php echo e(request()->is('sale-return/create') || request()->is('sale-return/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('sale-return.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Sale Return')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('sale-list')): ?>
        <li class="menu-item <?php echo e(request()->is('sale-return') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('sale-return.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Sale Return')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('installment_sale-list') || Auth::user()->can('installment_sale-create')): ?>
    <li class="menu-item <?php echo e((request()->is('installment-sale*') || request()->is('installment-collection*') || request()->is('due-installment*') || request()->is('installment-customer*')) ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-stack-middle"></i>
        <div><?php echo e(__('Installment Sale')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('installment_sale-create')): ?>
        <li class="menu-item <?php echo e(request()->is('installment-sale/create') || request()->is('installment-sale/*/edit') || request()->is('installment-sale/*') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('installment-sale.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Installment Sale')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('installment_sale-list')): ?>
        <li class="menu-item <?php echo e(request()->is('installment-sale') && !request()->is('installment-sale/*') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('installment-sale.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Installment Sale')); ?></div>
          </a>
        </li>
        <li class="menu-item <?php echo e(request()->is('installment-collection*') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('installment-collection.index')); ?>" class="menu-link">
            <div><?php echo e(__('Installment Collection')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('customer-list') || Auth::user()->can('customer-create') || Auth::user()->can('customer_receive-list') || Auth::user()->can('customer_receive-create')): ?>
    <li class="menu-item <?php echo e((request()->is('customer*') || request()->is('customer-receive*')) || request()->is('installment-customer*') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-user-plus"></i>
        <div><?php echo e(__('Customer')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('customer-create')): ?>
        <li class="menu-item <?php echo e(request()->is('customer/create') || request()->is('customer/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('customer.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Customer')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('customer-list')): ?>
        <li class="menu-item <?php echo e(request()->is('customer') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('customer.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Customer')); ?></div>
          </a>
        </li>
        <li class="menu-item <?php echo e(request()->is('installment-customer/create') || request()->is('installment-customer/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('installment-customer.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Installment Customer')); ?></div>
          </a>
        </li>
        <li class="menu-item <?php echo e(request()->is('installment-customer') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('installment-customer.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Installment Customer')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('customer_receive-create')): ?>
        <li class="menu-item <?php echo e(request()->is('customer-receive/create') || request()->is('customer-receive/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('customer-receive.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Customer Receive')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('customer_receive-list')): ?>
        <li class="menu-item <?php echo e(request()->is('customer-receive') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('customer-receive.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Customer Receive')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('income-list') || Auth::user()->can('income-create') || Auth::user()->can('income_category-list') || Auth::user()->can('income_category-create')): ?>
    <li class="menu-item <?php echo e(request()->is('income*') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-circle-plus"></i>
        <div><?php echo e(__('Income')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('income-create')): ?>
        <li class="menu-item <?php echo e(request()->is('income/create') || request()->is('income/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('income.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Income')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('income-list')): ?>
        <li class="menu-item <?php echo e(request()->is('income') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('income.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Income')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('income_category-create')): ?>
        <li class="menu-item <?php echo e(request()->is('income-category/create') || request()->is('income-category/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('income-category.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Income Category')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('income_category-list')): ?>
        <li class="menu-item <?php echo e(request()->is('income-category') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('income-category.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Income Category')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    
    <!-- Purchase Supplier -->
    <?php if(Auth::user()->can('purchase-list') || Auth::user()->can('purchase_return-list') || Auth::user()->can('supplier-list') || Auth::user()->can('supplier_payment-list') || Auth::user()->can('expense-list') || Auth::user()->can('transfer-list') || Auth::user()->can('damage-list') || Auth::user()->can('quotation-list')): ?>
    <li class="menu-header small">
      <span class="menu-header-text"><?php echo e(__('Purchase & Supplier')); ?></span>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('purchase-list') || Auth::user()->can('purchase-create')): ?>
    <li class="menu-item <?php echo e(request()->is('purchase/create') || request()->is('purchase/*/edit') || request()->is('purchase') || request()->is('purchase/*/show')  ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-basket-down"></i>
        <div><?php echo e(__('Purchase')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('purchase-create')): ?>
        <li class="menu-item <?php echo e(request()->is('purchase/create') || request()->is('purchase/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('purchase.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Purchase')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('purchase-list')): ?>
        <li class="menu-item <?php echo e(request()->is('purchase') || request()->is('purchase/*/show') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('purchase.index')); ?>" class="menu-link">  
            <div><?php echo e(__('List Purchase')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('purchase_return-list') || Auth::user()->can('purchase_return-create')): ?>
    <li class="menu-item <?php echo e(request()->is('purchase-return*') || request()->is('purchase-return/*/show') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-u-turn-left"></i>
        <div><?php echo e(__('Purchase Return')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('purchase_return-create')): ?>
        <li class="menu-item <?php echo e(request()->is('purchase-return/create') || request()->is('purchase-return/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('purchase-return.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Purchase Return')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('purchase_return-list')): ?>
        <li class="menu-item <?php echo e(request()->is('purchase-return') || request()->is('purchase-return/*/show') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('purchase-return.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Purchase Return')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('supplier-list') || Auth::user()->can('supplier-create') || Auth::user()->can('supplier_payment-list') || Auth::user()->can('supplier_payment-create')): ?>
    <li class="menu-item <?php echo e(request()->is('supplier*') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-user-minus"></i>
        <div><?php echo e(__('Supplier')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('supplier-create')): ?>
        <li class="menu-item <?php echo e(request()->is('supplier/create') || request()->is('supplier/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('supplier.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Supplier')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('supplier-list')): ?>
        <li class="menu-item <?php echo e(request()->is('supplier') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('supplier.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Supplier')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('supplier_payment-create')): ?>
        <li class="menu-item <?php echo e(request()->is('supplier-payment/create') || request()->is('supplier-payment/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('supplier-payment.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Supplier Payment')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('supplier_payment-list')): ?>
        <li class="menu-item <?php echo e(request()->is('supplier-payment') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('supplier-payment.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Supplier Payment')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('expense-list') || Auth::user()->can('expense-create') || Auth::user()->can('expense_category-list') || Auth::user()->can('expense_category-create')): ?>
    <li class="menu-item <?php echo e(request()->is('expense*') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-circle-minus"></i>
        <div><?php echo e(__('Expense')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('expense-create')): ?>
        <li class="menu-item <?php echo e(request()->is('expense/create') || request()->is('expense/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('expense.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Expense')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('expense-list')): ?>
        <li class="menu-item <?php echo e(request()->is('expense') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('expense.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Expense')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('expense_category-create')): ?>
        <li class="menu-item <?php echo e(request()->is('expense-category/create') || request()->is('expense-category/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('expense-category.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Expense Category')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('expense_category-list')): ?>
        <li class="menu-item <?php echo e(request()->is('expense-category') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('expense-category.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Expense Category')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>

    <!-- Transfer & Damage -->
    <?php if(Auth::user()->can('transfer-list') || Auth::user()->can('damage-list') || Auth::user()->can('quotation-list')): ?>
    <li class="menu-header small">
      <span class="menu-header-text"><?php echo e(__('Transfer & Damage')); ?></span>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('transfer-list') || Auth::user()->can('transfer-create')): ?>
    <li class="menu-item <?php echo e(request()->is('transfer*') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-truck-delivery"></i>
        <div><?php echo e(__('Transfer')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('transfer-create')): ?>
        <li class="menu-item <?php echo e(request()->is('transfer/create') || request()->is('transfer/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('transfer.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Transfer')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('transfer-list')): ?>
        <li class="menu-item <?php echo e(request()->is('transfer') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('transfer.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Transfer')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('damage-list') || Auth::user()->can('damage-create')): ?>
    <li class="menu-item <?php echo e(request()->is('damage*') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-trash"></i>
        <div><?php echo e(__('Damage')); ?></div>
      </a>
      <ul class="menu-sub ">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('damage-create')): ?>
        <li class="menu-item <?php echo e(request()->is('damage/create') || request()->is('damage/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('damage.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Damage')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('damage-list')): ?>
        <li class="menu-item <?php echo e(request()->is('damage') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('damage.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Damage')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('quotation-list') || Auth::user()->can('quotation-create')): ?>
    <li class="menu-item <?php echo e(request()->is('quotation*') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-pencil-star"></i>
        <div><?php echo e(__('Quotation')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('quotation-create')): ?>
        <li class="menu-item <?php echo e(request()->is('quotation/create') || request()->is('quotation/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('quotation.create')); ?>" class="menu-link ">
            <div><?php echo e(__('Add Quotation')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('quotation-list')): ?>
        <li class="menu-item <?php echo e(request()->is('quotation') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('quotation.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Quotation')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>

    <!-- Fixed Assets -->
    <?php if(Auth::user()->can('fixed_asset_item-list') || Auth::user()->can('fixed_asset_item-create') || Auth::user()->can('fixed_asset_stock_in-list') || Auth::user()->can('fixed_asset_stock_in-create') || Auth::user()->can('fixed_asset_stock_out-list') || Auth::user()->can('fixed_asset_stock_out-create')): ?>
    <li class="menu-header small">
      <span class="menu-header-text"><?php echo e(__('Fixed Asset')); ?></span>
    </li>
    <li class="menu-item <?php echo e(request()->is('fixed-asset*') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-tournament"></i>
        <div><?php echo e(__('Fixed Asset')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('fixed_asset_item-create')): ?>
        <li class="menu-item <?php echo e(request()->is('fixed-asset-item/create') || request()->is('fixed-asset-item/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('fixed-asset-item.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Fixed Asset Item')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('fixed_asset_item-list')): ?>
        <li class="menu-item <?php echo e(request()->is('fixed-asset-item') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('fixed-asset-item.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Fixed Asset Item')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('fixed_asset_stock_in-create')): ?>
        <li class="menu-item <?php echo e(request()->is('fixed-asset-stock-in/create') || request()->is('fixed-asset-stock-in/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('fixed-asset-stock-in.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Fixed Asset Stock In')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('fixed_asset_stock_in-list')): ?>
        <li class="menu-item <?php echo e(request()->is('fixed-asset-stock-in')  ? 'active' : ''); ?>">
          <a href="<?php echo e(route('fixed-asset-stock-in.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Fixed Asset Stock In')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('fixed_asset_stock_out-create')): ?>
        <li class="menu-item <?php echo e(request()->is('fixed-asset-stock-out/create') || request()->is('fixed-asset-stock-out/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('fixed-asset-stock-out.create')); ?>" class="menu-link ">
            <div><?php echo e(__('Add Fixed Asset Stock Out')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('fixed_asset_stock_out-list')): ?>
        <li class="menu-item <?php echo e(request()->is('fixed-asset-stock-out') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('fixed-asset-stock-out.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Fixed Asset Stock Out')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>

    <!-- Warranty Servicing -->
    <?php if(Auth::user()->can('warranty-list') || Auth::user()->can('warranty-create') || Auth::user()->can('warranty-checking') || Auth::user()->can('servicing-list') || Auth::user()->can('servicing-create')): ?>
    <li class="menu-header small">
      <span class="menu-header-text"><?php echo e(__('Warranty & Servicing')); ?></span>
    </li>
    <li class="menu-item <?php echo e(request()->is('warranty*') || request()->is('servicing*') || request()->is('warranty/checking')  ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-device-desktop-cog"></i>
        <div><?php echo e(__('Warranty')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('servicing-create')): ?>
        <li class="menu-item <?php echo e(request()->is('servicing/create') || request()->is('servicing/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('servicing.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Servicing')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('servicing-list')): ?>
        <li class="menu-item <?php echo e(request()->is('servicing') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('servicing.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Servicing')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('warranty-create')): ?>
        <li class="menu-item <?php echo e(request()->is('warranty/create') || request()->is('warranty/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('warranty.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Warranty')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('warranty-list')): ?>
        <li class="menu-item <?php echo e(request()->is('warranty') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('warranty.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Warranty')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('warranty-checking')): ?>
        <li class="menu-item <?php echo e(request()->is('warranty/checking') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('warranty.checking')); ?>" class="menu-link">
            <div><?php echo e(__('Warranty Checking')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>


    <!-- Accounting Payroll -->
    <?php if(Auth::user()->can('payment_method-list') || Auth::user()->can('payment_method-create') || Auth::user()->can('deposit_withdraw-list') || Auth::user()->can('deposit_withdraw-create')): ?>
    <li class="menu-header small">
      <span class="menu-header-text"><?php echo e(__('Accounting')); ?></span>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('payment_method-list') || Auth::user()->can('payment_method-create')): ?>
    <li class="menu-item <?php echo e((request()->is('payment-method*') || request()->is('payment-method/sort-payment-method')) ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-building-bank"></i>
        <div><?php echo e(__('Payment Account')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('payment_method-create')): ?>
        <li class="menu-item <?php echo e(request()->is('payment-method/create') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('payment-method.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Payment Account')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('payment_method-list')): ?>
        <li class="menu-item <?php echo e(request()->is('payment-method') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('payment-method.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Payment Account')); ?></div>
          </a>
        </li>
        <li class="menu-item <?php echo e(request()->is('payment-method/sort-payment-method') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('payment-method.sort-payment-method')); ?>" class="menu-link">
            <div><?php echo e(__('Sort Account')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('deposit_withdraw-list') || Auth::user()->can('deposit_withdraw-create')): ?>
    <li class="menu-item <?php echo e((request()->is('deposit-withdraw*') || request()->is('account-reports/account-balance/view') || request()->is('account-reports/balance-sheet/view') || request()->is('account-reports/account-statement/view') || request()->is('account-reports/transaction-history/view') || request()->is('account-reports/trial-balance/view')) ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-receipt-dollar"></i>
        <div><?php echo e(__('Accounting')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('deposit_withdraw-create')): ?>
        <li class="menu-item <?php echo e(request()->is('deposit-withdraw/create') || request()->is('deposit-withdraw/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('deposit-withdraw.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Deposit/Withdraw')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('deposit_withdraw-list')): ?>
        <li class="menu-item <?php echo e(request()->is('deposit-withdraw') && !request()->is('deposit-withdraw/create') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('deposit-withdraw.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Deposit/Withdraw')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('accounting-account_balance')): ?>
        <li class="menu-item <?php echo e(request()->is('account-reports/account-balance/view') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('accounting.reports.account-balance.view')); ?>" class="menu-link">
            <div><?php echo e(__('Account Balance')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('accounting-account_statement')): ?>
        <li class="menu-item <?php echo e(request()->is('account-reports/account-statement/view') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('accounting.reports.account-statement.view')); ?>" class="menu-link">
            <div><?php echo e(__('Account Statement')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('accounting-balancesheet')): ?>
        <li class="menu-item <?php echo e(request()->is('account-reports/balance-sheet/view') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('accounting.reports.balance-sheet.view')); ?>" class="menu-link">
            <div><?php echo e(__('Balance Sheet')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('accounting-trial_balance')): ?>
        <li class="menu-item <?php echo e(request()->is('account-reports/trial-balance/view') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('accounting.reports.trial-balance.view')); ?>" class="menu-link">
            <div><?php echo e(__('Trial Balance')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('accounting-transaction_history')): ?>
        <li class="menu-item <?php echo e(request()->is('account-reports/transaction-history/view') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('accounting.reports.transaction-history.view')); ?>" class="menu-link">
            <div><?php echo e(__('Transaction History')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>

    <!-- Marketing -->
    <?php if(Auth::user()->can('marketing-email') || Auth::user()->can('marketing-sms') || Auth::user()->can('marketing-whatsapp')): ?>
    <li class="menu-header small">
      <span class="menu-header-text"><?php echo e(__('Marketing')); ?></span>
    </li>
    <li class="menu-item <?php echo e(request()->is('email-marketing') || request()->is('sms-marketing') || request()->is('whatsapp-marketing') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-ad-2"></i>
        <div><?php echo e(__('Marketing')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('marketing-email')): ?>
        <li class="menu-item <?php echo e(request()->is('email-marketing') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('email.marketing')); ?>" class="menu-link">
            <div><?php echo e(__('Email Marketing')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('marketing-sms')): ?>
        <li class="menu-item <?php echo e(request()->is('sms-marketing') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('sms.marketing')); ?>" class="menu-link">
            <div><?php echo e(__('SMS Marketing')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('marketing-whatsapp')): ?>
        <li class="menu-item <?php echo e(request()->is('whatsapp-marketing') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('whatsapp.marketing')); ?>" class="menu-link">
            <div><?php echo e(__('WhatsApp Marketing')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    
    
    <!-- Account Attendance -->
    <?php if(Auth::user()->can('role-list') || Auth::user()->can('role-create') || Auth::user()->can('user-list') || Auth::user()->can('user-create') || Auth::user()->can('user-edit') || Auth::user()->can('attendance-list') || Auth::user()->can('attendance-create') || Auth::user()->can('salary-list') || Auth::user()->can('salary-create') || Auth::user()->can('employee_advance_payment-list') || Auth::user()->can('employee_advance_payment-create')): ?>
    <li class="menu-header small">
      <span class="menu-header-text"><?php echo e(__('Human Resource Management')); ?></span>
    </li>
    <?php if(Auth::user()->can('role-list') || Auth::user()->can('role-create')): ?>
    <li class="menu-item <?php echo e(request()->is('role*') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-fingerprint"></i>
        <div><?php echo e(__('Role Permission')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('role-create')): ?>
        <li class="menu-item <?php echo e(request()->is('role/create') || request()->is('role/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('role.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Role Permission')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('role-list')): ?>
        <li class="menu-item <?php echo e(request()->is('role') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('role.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Role Permission')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('user-create') || Auth::user()->can('user-list') || Auth::user()->can('user-edit')): ?>
    <li class="menu-item <?php echo e(request()->is('user*') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-password-user"></i>
        <div><?php echo e(__('Employee Account')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('user-create')): ?>
        <li class="menu-item <?php echo e(request()->is('user/create') || request()->is('user/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('user.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Employee')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('user-list')): ?>
        <li class="menu-item <?php echo e(request()->is('user') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('user.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Employee')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('user-edit')): ?>
        <li class="menu-item <?php echo e(request()->is('user/profile/update') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('user.update-profile')); ?>" class="menu-link">
            <div><?php echo e(__('Update Profile')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('attendance-list') || Auth::user()->can('attendance-create')): ?>
    <li class="menu-item <?php echo e(request()->is('attendance*') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-clock-24"></i>
        <div><?php echo e(__('Attendance')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('attendance-create')): ?>
        <li class="menu-item <?php echo e(request()->is('attendance/create') || request()->is('attendance/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('attendance.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Attendance')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('attendance-list')): ?>
        <li class="menu-item <?php echo e(request()->is('attendance') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('attendance.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Attendance')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('salary-list') || Auth::user()->can('salary-create')): ?>
    <li class="menu-item <?php echo e(request()->is('salary*') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-wallet"></i>
        <div><?php echo e(__('Salary/Payroll')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('salary-create')): ?>
        <li class="menu-item <?php echo e(request()->is('salary/create') || request()->is('salary/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('salary.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Salary')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('salary-list')): ?>
        <li class="menu-item <?php echo e(request()->is('salary') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('salary.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Salary')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('employee_advance_payment-list') || Auth::user()->can('employee_advance_payment-create')): ?>
    <li class="menu-item <?php echo e(request()->is('employee-advance-payment*') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-cash"></i>
        <div><?php echo e(__('Employee Advance Payment')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('employee_advance_payment-create')): ?>
        <li class="menu-item <?php echo e(request()->is('employee-advance-payment/create') || request()->is('employee-advance-payment/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('employee-advance-payment.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Employee Advance Payment')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('employee_advance_payment-list')): ?>
        <li class="menu-item <?php echo e(request()->is('employee-advance-payment') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('employee-advance-payment.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Employee Advance Payment')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php endif; ?>

    <!-- Report -->
    <?php
      $reportPerms = ['report-register_report','report-z_report','report-daily_summary_report','report-sale_report','report-due_sale_report','report-final_invoice_due_report','report-service_sale_report','report-combo_service_report','report-stock_report','report-low_stock_report','report-expire_soon_report','report-employee_sale_report','report-customer_receive_report','report-attendance_report','report-product_profit_report','report-supplier_ledger_report','report-supplier_balance_report','report-customer_ledger_report','report-customer_balance_report','report-servicing_report','report-product_sale_report','report-tax_report','report-detailed_sale_report','report-profit_loss_report','report-purchase_report','report-expense_report','report-income_report','report-salary_report','report-purchase_return_report','report-sale_return_report','report-damage_report','report-installment_report','report-installment_due_report','report-item_tracking_report','report-price_history_report','report-cash_flow_report','report-available_loyalty_point_report','report-usage_loyalty_point_report'];
      $hasReportPermission = collect($reportPerms)->contains(fn($p) => Auth::user()->can($p));
    ?>
    <?php if($hasReportPermission || Auth::user()->can('denomination-list') || Auth::user()->can('multiple_currency-list') || Auth::user()->can('printer-list') || Auth::user()->can('counter-list')): ?>
    <li class="menu-header small">
      <span class="menu-header-text"><?php echo e(__('Report & Setting')); ?></span>
    </li>
    <?php endif; ?>
    <?php if($hasReportPermission): ?>
    <li class="menu-item <?php echo e(request()->is('reports*') ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-book-2"></i>
        <div><?php echo e(__('Report')); ?></div>
      </a>
      <ul class="menu-sub">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-register_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/register-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.register-report')); ?>" class="menu-link"><div><?php echo e(__('Register Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-z_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/z-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.z-report')); ?>" class="menu-link"><div><?php echo e(__('Z Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-daily_summary_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/daily-summary-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.daily-summary-report')); ?>" class="menu-link"><div><?php echo e(__('Daily Summary Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-sale_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/sale-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.sale-report')); ?>" class="menu-link"><div><?php echo e(__('Sale Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-due_sale_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/due-sale-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.due-sale-report')); ?>" class="menu-link"><div><?php echo e(__('Due Sale Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-final_invoice_due_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/final-invoice-due-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.final-invoice-due-report')); ?>" class="menu-link"><div><?php echo e(__('Final Invoice Due Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-service_sale_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/service-sale-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.service-sale-report')); ?>" class="menu-link"><div><?php echo e(__('Service Sale Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-combo_service_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/combo-service-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.combo-service-report')); ?>" class="menu-link"><div><?php echo e(__('Combo Service Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-stock_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/stock-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.stock-report')); ?>" class="menu-link"><div><?php echo e(__('Stock Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-low_stock_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/low-stock-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.low-stock-report')); ?>" class="menu-link"><div><?php echo e(__('Low Stock Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-expire_soon_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/expire-soon-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.expire-soon-report')); ?>" class="menu-link"><div><?php echo e(__('Expire Soon Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-employee_sale_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/employee-sale-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.employee-sale-report')); ?>" class="menu-link"><div><?php echo e(__('Employee Sale Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-customer_receive_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/customer-receive-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.customer-receive-report')); ?>" class="menu-link"><div><?php echo e(__('Customer Receive Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-attendance_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/attendance-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.attendance-report')); ?>" class="menu-link"><div><?php echo e(__('Attendance Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-product_profit_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/product-profit-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.product-profit-report')); ?>" class="menu-link"><div><?php echo e(__('Product Profit Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-supplier_ledger_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/supplier-ledger-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.supplier-ledger-report')); ?>" class="menu-link"><div><?php echo e(__('Supplier Ledger Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-supplier_balance_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/supplier-balance-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.supplier-balance-report')); ?>" class="menu-link"><div><?php echo e(__('Supplier Balance Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-customer_ledger_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/customer-ledger-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.customer-ledger-report')); ?>" class="menu-link"><div><?php echo e(__('Customer Ledger Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-customer_balance_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/customer-balance-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.customer-balance-report')); ?>" class="menu-link"><div><?php echo e(__('Customer Balance Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-servicing_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/servicing-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.servicing-report')); ?>" class="menu-link"><div><?php echo e(__('Servicing Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-product_sale_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/product-sale-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.product-sale-report')); ?>" class="menu-link"><div><?php echo e(__('Product Sale Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-tax_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/tax-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.tax-report')); ?>" class="menu-link"><div><?php echo e(__('Tax Report')); ?></div></a></li>
        <li class="menu-item <?php echo e(request()->is('reports/gst-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.gst-report')); ?>" class="menu-link"><div><?php echo e(__('GST Reports')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-detailed_sale_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/detailed-sale-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.detailed-sale-report')); ?>" class="menu-link"><div><?php echo e(__('Detailed Sale Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-profit_loss_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/profit-loss-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.profit-loss-report')); ?>" class="menu-link"><div><?php echo e(__('Profit Loss Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-purchase_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/purchase-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.purchase-report')); ?>" class="menu-link"><div><?php echo e(__('Purchase Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-expense_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/expense-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.expense-report')); ?>" class="menu-link"><div><?php echo e(__('Expense Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-income_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/income-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.income-report')); ?>" class="menu-link"><div><?php echo e(__('Income Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-salary_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/salary-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.salary-report')); ?>" class="menu-link"><div><?php echo e(__('Salary Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-purchase_return_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/purchase-return-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.purchase-return-report')); ?>" class="menu-link"><div><?php echo e(__('Purchase Return Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-sale_return_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/sale-return-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.sale-return-report')); ?>" class="menu-link"><div><?php echo e(__('Sale Return Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-damage_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/damage-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.damage-report')); ?>" class="menu-link"><div><?php echo e(__('Damage Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-installment_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/installment-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.installment-report')); ?>" class="menu-link"><div><?php echo e(__('Installment Collection Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-installment_due_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/installment-due-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.installment-due-report')); ?>" class="menu-link"><div><?php echo e(__('Installment Due Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-item_tracking_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/item-tracking-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.item-tracking-report')); ?>" class="menu-link"><div><?php echo e(__('Item Tracking Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-price_history_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/price-history-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.price-history-report')); ?>" class="menu-link"><div><?php echo e(__('Price History Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-cash_flow_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/cash-flow-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.cash-flow-report')); ?>" class="menu-link"><div><?php echo e(__('Cash Flow Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-available_loyalty_point_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/available-loyalty-point-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.available-loyalty-point-report')); ?>" class="menu-link"><div><?php echo e(__('Available Loyalty Point Report')); ?></div></a></li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report-usage_loyalty_point_report')): ?>
        <li class="menu-item <?php echo e(request()->is('reports/usage-loyalty-point-report') ? 'active' : ''); ?>"><a href="<?php echo e(route('report.usage-loyalty-point-report')); ?>" class="menu-link"><div><?php echo e(__('Usage Loyalty Point Report')); ?></div></a></li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php if(Auth::user()->can('denomination-list') || Auth::user()->can('denomination-create') || Auth::user()->can('multiple_currency-list') || Auth::user()->can('multiple_currency-create') || Auth::user()->can('printer-list') || Auth::user()->can('printer-create') || Auth::user()->can('counter-list') || Auth::user()->can('counter-create')): ?>
    <li class="menu-item <?php echo e((request()->is('setting*') || request()->is('denomination*') || request()->is('multiple-currency*') || request()->is('printer*') || request()->is('counter*')) ? 'active open' : ''); ?>">
      <a href="javascript:void(0);" class="menu-link menu-toggle">
        <i class="menu-icon icon-base ti tabler-settings"></i>
        <div><?php echo e(__('Settings')); ?></div>
      </a>
      <ul class="menu-sub">
        <li class="menu-item <?php echo e(request()->is('setting*') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('setting', 'business_setting')); ?>" class="menu-link">
            <div><?php echo e(__('All Settings')); ?></div>
          </a>
        </li>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('denomination-create')): ?>
        <li class="menu-item <?php echo e(request()->is('denomination/create') || request()->is('denomination/*/edit')  ? 'active' : ''); ?>">
          <a href="<?php echo e(route('denomination.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Denomination')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('denomination-list')): ?>
        <li class="menu-item <?php echo e(request()->is('denomination') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('denomination.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Denomination')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('multiple_currency-create')): ?>
        <li class="menu-item <?php echo e(request()->is('multiple-currency/create') || request()->is('multiple-currency/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('multiple-currency.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Multiple Currency')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('multiple_currency-list')): ?>
        <li class="menu-item <?php echo e(request()->is('multiple-currency') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('multiple-currency.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Multiple Currency')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('printer-create')): ?>
        <li class="menu-item <?php echo e(request()->is('printer/create') || request()->is('printer/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('printer.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Printer')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('printer-list')): ?>
        <li class="menu-item <?php echo e(request()->is('printer') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('printer.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Printer')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('counter-create')): ?>
        <li class="menu-item <?php echo e(request()->is('counter/create') || request()->is('counter/*/edit') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('counter.create')); ?>" class="menu-link">
            <div><?php echo e(__('Add Counter')); ?></div>
          </a>
        </li>
        <?php endif; ?>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('counter-list')): ?>
        <li class="menu-item <?php echo e(request()->is('counter') ? 'active' : ''); ?>">
          <a href="<?php echo e(route('counter.index')); ?>" class="menu-link">
            <div><?php echo e(__('List Counter')); ?></div>
          </a>
        </li>
        <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>
    <?php if(! config('app.re', false)): ?>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('security-update')): ?>
    <li class="menu-item <?php echo e(request()->is('update*') ? 'active' : ''); ?>">
      <a href="<?php echo e(route('update.verification')); ?>" class="menu-link">
        <i class="menu-icon icon-base ti tabler-cloud-upload"></i>
        <div><?php echo e(__('Update')); ?></div>
      </a>
    </li>
    <?php endif; ?>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('security-uninstall')): ?>
    <li class="menu-item">
      <a href="<?php echo e(route('uninstall.license')); ?>" class="menu-link">
        <i class="menu-icon icon-base ti tabler-cloud-x"></i>
        <div><?php echo e(__('Uninstall')); ?></div>
      </a>
    </li>
    <?php endif; ?>
    <?php endif; ?>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('security-dbbackup')): ?>
    <li class="menu-item <?php echo e(request()->is('dbb*') ? 'active' : ''); ?>">
      <a href="<?php echo e(url('dbb')); ?>?action=database_backup" class="menu-link">
        <i class="menu-icon icon-base ti tabler-database-export"></i>
        <div><?php echo e(__('Database Backup')); ?></div>
      </a>
    </li>
    <?php endif; ?>
    <li class="menu-item">
      <a href="app-chat.html" class="menu-link">
        <i class="menu-icon icon-base ti tabler-logout"></i>
        <div><?php echo e(__('Logout')); ?></div>
      </a>
    </li>
  </ul>
</aside>
<div class="menu-mobile-toggler d-xl-none rounded-1">
  <a href="javascript:void(0);" class="layout-menu-toggle menu-link text-large text-bg-secondary p-2 rounded-1">
    <i class="ti tabler-menu icon-base"></i>
    <i class="ti tabler-chevron-right icon-base"></i>
  </a>
</div><?php /**PATH /home/uzbeacom/pos.uzbea.com/off_pos/resources/views/backend/components/sidebar.blade.php ENDPATH**/ ?>