<!-- Test Manager -->
<?php if(
request()->segment(1) == 'accounts' ||
request()->segment(1) == 'contacts' ||
request()->segment(1) == 'account-titles' ||
request()->segment(1) == 'accounting-types' ||
request()->segment(1) == 'accounting-groups' ||
request()->segment(1) == 'account-categories' ||
request()->segment(1) == 'account-types' ||
request()->segment(1) == 'tax-register-categories' ||
request()->segment(1) == 'license-types' ||
request()->segment(1) == 'account-settlement-types' ||
request()->segment(1) == 'blood-groups' ||
request()->segment(1) == 'relation-types' ||
request()->segment(1) == 'genders' ||
request()->segment(1) == 'payment-modes' ||
request()->segment(1) == 'marital-statuses'): ?>

<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>

    <?php if(in_array('ACCOUNTS', $modulePermissions) && in_array('accounts-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'accounts' ? 'active' : ''); ?>" href="<?php echo e(route('accounts.index')); ?>">Accounts</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('ACCOUNT_CONTACTS', $modulePermissions) && in_array('account-contacts-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'contacts' ? 'active' : ''); ?>" href="<?php echo e(route('contacts.index')); ?>">Contacts</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('ACCOUNTING_TYPE', $modulePermissions) && in_array('accounting-type-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'accounting-types' ? 'active' : ''); ?>" href="<?php echo e(route('accounting-types.index')); ?>">Accounting Types</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('ACCOUNTING_GROUP', $modulePermissions) && in_array('accounting-group-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'accounting-groups' ? 'active' : ''); ?>" href="<?php echo e(route('accounting-groups.index')); ?>">Accounting Groups</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('ACCOUNT_CATEGORY', $modulePermissions) && in_array('account-category-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'account-categories' ? 'active' : ''); ?>" href="<?php echo e(route('account-categories.index')); ?>">Categories</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('ACCOUNT_TYPE', $modulePermissions) && in_array('account-type-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'account-types' ? 'active' : ''); ?>" href="<?php echo e(route('account-types.index')); ?>">Types</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('PAYMENT_MODE', $modulePermissions) && in_array('payment-mode-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'payment-modes' ? 'active' : ''); ?>" href="<?php echo e(route('payment-modes.index')); ?>">Payment Mode</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('LICENSE_TYPE', $modulePermissions) && in_array('license-type-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'license-types' ? 'active' : ''); ?>" href="<?php echo route('license-types.index'); ?>">License Types</a>
    </li>
    <?php endif; ?>

    <li>
      <div class="btn-group dropend">
        <button type="button" class="btn btn-link dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
          More<i class="bi bi-arrow-down ms-1"></i>
        </button>
        <ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDarkDropdownMenuLink">

          <?php if(in_array('ACCOUNT_TITLE', $modulePermissions) && in_array('account-title-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'account-titles' ? 'active' : ''); ?>" href="<?php echo e(route('account-titles.index')); ?>">Titles</a>
          </li>
          <?php endif; ?>

          <?php if(in_array('ACCOUNT_SETTLEMENT_TYPES', $modulePermissions)): ?>
            <?php if(in_array('account-settlement-types-list', $authRolePermissions)): ?>
            <li>
                <a class="dropdown-item <?php echo e(request()->segment(1) == 'account-settlement-types' ? 'active' : ''); ?>" href="<?php echo route('account-settlement-types.index'); ?>">Settlement Type</a>
            </li>
            <?php endif; ?>
          <?php endif; ?>

          <?php if(in_array('TAX_REGISTER_CATEGORY', $modulePermissions)): ?>
            <?php if(in_array('tax-register-category-list', $authRolePermissions)): ?>
            <li>
                <a class="dropdown-item <?php echo e(request()->segment(1) == 'tax-register-categories' ? 'active' : ''); ?>" href="<?php echo route('tax-register-categories.index'); ?>">Tax Register Categories</a>
                
            </li>
            <?php endif; ?>
          <?php endif; ?>

          <?php if(in_array('BLOOD_GROUPS', $modulePermissions) && in_array('blood-groups-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'blood-groups' ? 'active' : ''); ?>" href="<?php echo e(route('blood-groups.index')); ?>">Blood Groups</a>
          </li>
          <?php endif; ?>

          <?php if(in_array('GENDERS', $modulePermissions) && in_array('genders-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'genders' ? 'active' : ''); ?>" href="<?php echo e(route('genders.index')); ?>">Genders</a>
          </li>
          <?php endif; ?>

          <?php if(in_array('MARITAL_STATUS', $modulePermissions) && in_array('marital-status-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'marital-statuses' ? 'active' : ''); ?>" href="<?php echo e(route('marital-statuses.index')); ?>">Marital Statuses</a>
          </li>
          <?php endif; ?>

          <?php if(in_array('RELATION_TYPES', $modulePermissions) && in_array('relation-types-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'relation-types' ? 'active' : ''); ?>" href="<?php echo e(route('relation-types.index')); ?>">Relation Types</a>
          </li>
          <?php endif; ?>

        </ul>
      </div>
    </li>
  </ul>
</nav>
<!-- End Of Accounts -->




<!-- Products -->
<?php elseif(
request()->segment(1) == 'products' ||
request()->segment(1) == 'product-alternative-units' ||
request()->segment(1) == 'product-attribute-types' ||
request()->segment(1) == 'product-attributes' ||
request()->segment(1) == 'product-brands' ||
request()->segment(1) == 'product-categories' ||
request()->segment(1) == 'product-groups' ||
request()->segment(1) == 'product-item-types' ||
request()->segment(1) == 'product-warehouse' ||
request()->segment(1) == 'product-packaging' ||
request()->segment(1) == 'business-divisions' ||
request()->segment(1) == 'primary-units' ||
request()->segment(1) == 'product-location-rack' ||
request()->segment(1) == 'price-settings'||
request()->segment(1) == 'tax-categories' ||
request()->segment(1) == 'tax-masters' ||
request()->segment(1) == 'tax-masters-sub' ||
request()->segment(1) == 'rack-locations' ||
request()->segment(1) == 'tax-calculation'): ?>

<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>

    <?php if(in_array('PRODUCT', $modulePermissions) && in_array('product-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'products' ? 'active' : ''); ?>" href="<?php echo e(route('products.index')); ?>">Products</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('PRIMARY_UNIT', $modulePermissions) && in_array('primary-unit-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'primary-units' ? 'active' : ''); ?>" href="<?php echo e(route('primary-units.index')); ?>">Primary Units</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('PRODUCT_ALTERNATIVE_UNITS', $modulePermissions) && in_array('product-alternative-units-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'product-alternative-units' ? 'active' : ''); ?>" href="<?php echo e(route('product-alternative-units.index')); ?>">Alternative Units</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('PRODUCT_BRANDS', $modulePermissions) && in_array('product-brands-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'product-brands' ? 'active' : ''); ?>" href="<?php echo e(route('product-brands.index')); ?>">Brands</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('PRODUCT_CATEGORY', $modulePermissions) && in_array('product-category-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'product-categories' ? 'active' : ''); ?>" href="<?php echo e(route('product-categories.index')); ?>">Category</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('PRODUCT_GROUPS', $modulePermissions) && in_array('product-groups-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'product-groups' ? 'active' : ''); ?>" href="<?php echo e(route('product-groups.index')); ?>">Group</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('PRODUCT_ITEM_TYPES', $modulePermissions) && in_array('product-item-types-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'product-item-types' ? 'active' : ''); ?>" href="<?php echo e(route('product-item-types.index')); ?>">Item Type</a>
    </li>
    <?php endif; ?>

    <li>
      <a class="<?php echo e(request()->segment(1) == 'product-packaging' ? 'active' : ''); ?>" href="<?php echo e(route('product-packaging.index')); ?>">Product packaging</a>
    </li>

    <?php if(in_array('PRODUCT_ATTRIBUTES', $modulePermissions) && in_array('product-attributes-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'product-attributes' ? 'active' : ''); ?>" href="<?php echo e(route('product-attributes.index')); ?>">Attributes</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('TAX_MASTER', $modulePermissions) && in_array('tax-masters-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'tax-masters' ? 'active' : ''); ?>" href="<?php echo e(route('tax-masters.index')); ?>">Tax Masters</a>
    </li>
    <?php endif; ?>

    

    <?php if(in_array('TAX_CATEGORY', $modulePermissions) && in_array('tax-category-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'tax-categories' ? 'active' : ''); ?>" href="<?php echo e(route('tax-categories.index')); ?>">Tax Category</a>
    </li>
    <?php endif; ?>


    


    
    <li>
      <div class="btn-group dropend">
        <button type="button" class="btn btn-link dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"> More<i style="" class="bi bi-arrow-down ms-1"></i>
        </button>
        <ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDarkDropdownMenuLink">
          <?php if(in_array('PRODUCT_BUSINESS_DIVISIONS', $modulePermissions) && in_array('product-business-divisions-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'business-divisions' ? 'active' : ''); ?>" href="<?php echo e(url('business-divisions')); ?>">Business Divisions</a>
          </li>
          <?php endif; ?>

          <?php if(in_array('PRICE_SETTING', $modulePermissions) && in_array('price-setting-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'price-settings' ? 'active' : ''); ?>" href="<?php echo e(url('price-settings')); ?>">Price Settings</a>
          </li>
          <?php endif; ?>

          <?php if(in_array('PRODUCT_ATTRIBUTE_TYPES', $modulePermissions) && in_array('product-attribute-types-list', $authRolePermissions)): ?>
        <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'product-attribute-types' ? 'active' : ''); ?>" href="<?php echo e(url('product-attribute-types')); ?>">Attributes Types</a>
        
        </li>
        <?php endif; ?>

          <?php if(in_array('PRODUCT_WAREHOUSE', $modulePermissions) && in_array('product-warehouse-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'product-warehouse' ? 'active' : ''); ?>" href="<?php echo e(url('product-warehouse')); ?>">Warehouse</a>
          </li>
          <?php endif; ?>

          <?php if(in_array('PRODUCT_LOCATION_RACK', $modulePermissions) && in_array('product-location-rack-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'product-location-rack' ? 'active' : ''); ?>" href="<?php echo e(url('product-location-rack')); ?>">Rack</a>
          </li>
          <?php endif; ?>
          
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'rack-locations' ? 'active' : ''); ?>" href="<?php echo e(url('rack-locations')); ?>">Rack Location</a>
          </li>
          

        </ul>
      </div>
    </li>
  </ul>
</nav>
<!-- End Of Products -->

<!-- Academic -->
<?php elseif(
request()->segment(1) == 'companies' ||
request()->segment(1) == 'license' ||
request()->segment(1) == 'establishment-types' ||
request()->segment(1) == 'letter-heads'): ?>

<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>

    <?php if(in_array('COMPANY', $modulePermissions) && in_array('company-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'companies' ? 'active' : ''); ?>" href="<?php echo e(url('companies')); ?>">Company</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('COMPANY_DOCUMENTS', $modulePermissions) && in_array('company-documents-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'license' ? 'active' : ''); ?>" href="<?php echo e(route('license.index')); ?>">Documents Type</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('COMPANY_ESTABLISHMENT_TYPES', $modulePermissions) && in_array('company-establishment-types-edit', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'establishment-types' ? 'active' : ''); ?>" href="<?php echo e(route('establishment-types.index')); ?>">Establishment Type</a>
    </li>
    <?php endif; ?>


    
    <li>
      <a class="<?php echo e(request()->segment(1) == 'letter-heads' ? 'active' : ''); ?>" href="<?php echo e(route('letter-heads.index')); ?>"> Letter Heads</a>
    </li>
    
   

  </ul>
</nav>
<!-- End Of Tax Company -->

<!-- Opd Appointment -->
<?php elseif(
request()->segment(1) == 'payment-terms' ||
request()->segment(1) == 'users' ||
request()->segment(1) == 'roles' ||
request()->segment(1) == 'financialyear' ||
request()->segment(1) == 'modules' ||
request()->segment(1) == 'software-branding' ||
request()->segment(1) == 'global-tags' ||
request()->segment(1) == 'master-settings' ||
request()->segment(1) == 'user-types' ||
request()->segment(1) == 'advance-settings' ||
// request()->segment(1) == 'run-migrations' ||
request()->segment(1) == 'setting-languages' ||
request()->segment(1) == 'date-formats' ||
request()->segment(1) == 'time-formats' ||
request()->segment(1) == 'currencies' ||
request()->segment(1) == 'timezones' ||
request()->segment(1) == 'cities' ||
request()->segment(1) == 'countries' ||
request()->segment(1) == 'states' ||
request()->segment(1) == 'license-authentications' ||
request()->segment(1) == 'delivery-types' ||
request()->segment(1) == 'shipping-risk' ||
request()->segment(1) == 'tax-paid-by' ||
request()->segment(1) == 'transportation-mode' ||
request()->segment(1) == 'transport-type' ||
request()->segment(1) == 'rate-calculation-type' ||
request()->segment(1) == 'fuel-type' ||
request()->segment(1) == 'additional-charge' ||
request()->segment(1) == 'container-size' ||
request()->segment(1) == 'container-type' ||
request()->segment(1) == 'cargo-types' ||
request()->segment(1) == 'container-return-status' ||
request()->segment(1) == 'custom-clearance-status' ||
request()->segment(1) == 'consignment-booking-status' ||
request()->segment(1) == 'organization-department'): ?>

<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>

    



    <?php if(in_array('USERS', $modulePermissions) && in_array('users-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'users' ? 'active' : ''); ?>" href="<?php echo e(url ('users')); ?>">Users</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('ROLES', $modulePermissions) && in_array('role-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'roles' ? 'active' : ''); ?>" href="<?php echo e(route('roles.index')); ?>">Role & Permission</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('FINANCIAL_YEAR', $modulePermissions) && in_array('financial-year-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'financialyear' ? 'active' : ''); ?>" href="<?php echo e(url('financialyear')); ?>">Financial Years</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('MODULES', $modulePermissions) && in_array('modules-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'modules' ? 'active' : ''); ?>" href="<?php echo e(url('modules')); ?>">Modules</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('VOUCHERS_MASTER', $modulePermissions) && in_array('vouchers-master-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'vouchers-master' ? 'active' : ''); ?>" href="<?php echo e(url('vouchers-master')); ?>">Voucher Master</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('SOFTWARE_BRANDING', $modulePermissions) && in_array('software-branding-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'software-branding' ? 'active' : ''); ?>" href="<?php echo e(url('software-branding')); ?>">Software Branding</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('MASTER_SETTINGS', $modulePermissions) && in_array('master-settings-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'master-settings' ? 'active' : ''); ?>" href="<?php echo e(url('master-settings')); ?>">Master Settings</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('USER_TYPES', $modulePermissions) && in_array('user-types-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'user-types' ? 'active' : ''); ?>" href="<?php echo e(url('user-types')); ?>">User Types</a>
    </li>
    <?php endif; ?>


    <?php if(in_array('LICENSE_AUTHENTICATIONS', $modulePermissions) && in_array('license-authentications-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'license-authentications' ? 'active' : ''); ?>" href="<?php echo e(url('license-authentications')); ?>">License Authentications</a>
    </li>
    <?php endif; ?>

    <li>
      <div class="btn-group dropend">
        <button type="button" class="btn btn-link dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
          More<i class="bi bi-arrow-down ms-1"></i>
        </button>
        <ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDarkDropdownMenuLink">

          <?php if(in_array('PAYMENT_TERM', $modulePermissions) && in_array('payment-term-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'payment-terms' ? 'active' : ''); ?>" href="<?php echo e(route('payment-terms.index')); ?>">Payment Term</a>
          </li>
          <?php endif; ?>

          <?php if(in_array('TAGS', $modulePermissions) && in_array('global-tags-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'global-tags' ? 'active' : ''); ?>" href="<?php echo e(route('global-tags.index')); ?>">Tags</a>
          </li>
          <?php endif; ?>


          <?php if(in_array('ADVANCE SETTINGS', $modulePermissions) && in_array('advance-settings-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'advance-settings' ? 'active' : ''); ?>" href="<?php echo e(url('advance-settings')); ?>">Advance Settings</a>
          </li>
          <?php endif; ?>

          <?php if(in_array('ORGANIZATION_DEPARTMENT', $modulePermissions) && in_array('organization-department-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'organization-department' ? 'active' : ''); ?>" href="<?php echo e(url('organization-department')); ?>">Organization Department</a>
          </li>
          <?php endif; ?>
          <?php if(in_array('SETTINGS_LANGUAGE', $modulePermissions) && in_array('settings-language-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'setting-languages' ? 'active' : ''); ?>" href="<?php echo e(url('setting-languages')); ?>">Setting Languages</a>
          </li>
          <?php endif; ?>
          <?php if(in_array('DATE_FORMAT', $modulePermissions) && in_array('date-format-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'date-formats' ? 'active' : ''); ?>" href="<?php echo e(url('date-formats')); ?>">Date Format</a>
          </li>
          <?php endif; ?>
          <?php if(in_array('TIME_FORMAT', $modulePermissions) && in_array('time-format-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'time-formats' ? 'active' : ''); ?>" href="<?php echo e(url('time-formats')); ?>">Time Format</a>
          </li>
          <?php endif; ?>
          <?php if(in_array('CURRENCIES', $modulePermissions) && in_array('currencies-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'currencies' ? 'active' : ''); ?>" href="<?php echo e(url('currencies')); ?>">Currencies</a>
          </li>
          <?php endif; ?>
          <?php if(in_array('TIMEZONES', $modulePermissions) && in_array('timezones-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'timezones' ? 'active' : ''); ?>" href="<?php echo e(url('timezones')); ?>">Timezones</a>
          </li>
          <?php endif; ?>
          
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'countries' ? 'active' : ''); ?>" href="<?php echo e(url('countries')); ?>">Countries</a>
          </li>
          
          
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'states' ? 'active' : ''); ?>" href="<?php echo e(url('states')); ?>">States</a>
          </li>
          
          
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'cities' ? 'active' : ''); ?>" href="<?php echo e(url('cities')); ?>">Cities</a>
          </li>
          

           <?php if(in_array('DELIVERY_TYPE', $modulePermissions) && in_array('delivery-types-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'delivery-types' ? 'active' : ''); ?>" href="<?php echo e(url('delivery-types')); ?>">Delivery Types</a>
          </li>
           <?php endif; ?>
           <?php if(in_array('SHIPPING_RISK', $modulePermissions) && in_array('shipping-risk-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'shipping-risk' ? 'active' : ''); ?>" href="<?php echo e(url('shipping-risk')); ?>">Shipping Risk</a>
          </li>
           <?php endif; ?>
            <?php if(in_array('TAX_PAID_BY', $modulePermissions) && in_array('tax-paid-by-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'tax-paid-by' ? 'active' : ''); ?>" href="<?php echo e(url('tax-paid-by')); ?>">Tax Paid By</a>
          </li>
           <?php endif; ?>
          <?php if(in_array('TRANSPORTATION_MODE', $modulePermissions) && in_array('transportation-mode-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'transportation-mode' ? 'active' : ''); ?>" href="<?php echo e(url('transportation-mode')); ?>">Transportation Mode</a>
          </li>
          <?php endif; ?>
         <?php if(in_array('RATE_CALCULATION_TYPE', $modulePermissions) && in_array('rate-calculation-type-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'rate-calculation-type' ? 'active' : ''); ?>" href="<?php echo e(url('rate-calculation-type')); ?>">Rate Calculation Types</a>
          </li>
           <?php endif; ?>

         <?php if(in_array('ADDITIONAL_CHARGES', $modulePermissions) && in_array('additional-charges-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'additional-charge' ? 'active' : ''); ?>" href="<?php echo e(url('additional-charge')); ?>">Additional Charges</a>
          </li>
          <?php endif; ?>

           <?php if(in_array('FUEL_TYPE', $modulePermissions) && in_array('fuel-type-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'fuel-type' ? 'active' : ''); ?>" href="<?php echo e(url('fuel-type')); ?>">Fuel Types</a>
          </li>
          <?php endif; ?>

           <?php if(in_array('CONTAINER_SIZE', $modulePermissions) && in_array('container-size-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'container-size' ? 'active' : ''); ?>" href="<?php echo e(url('container-size')); ?>">Container Size</a>
          </li>
          <?php endif; ?>

          <?php if(in_array('CONTAINER_TYPE', $modulePermissions) && in_array('container-type-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'container-type' ? 'active' : ''); ?>" href="<?php echo e(url('container-type')); ?>">Container Types</a>
          </li>
          <?php endif; ?>

          <?php if(in_array('CARGO_TYPES', $modulePermissions) && in_array('cargo-types-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'cargo-types' ? 'active' : ''); ?>" href="<?php echo e(url('cargo-types')); ?>">Cargo Types</a>
          </li>
          <?php endif; ?>

          <?php if(in_array('CONTAINER_RETURN_STATUS', $modulePermissions) && in_array('container-return-status-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'container-return-status' ? 'active' : ''); ?>" href="<?php echo e(url('container-return-status')); ?>">Container Return Status</a>
          </li>
          <?php endif; ?>


          <?php if(in_array('CUSTOM_CLEARANCE_STATUS', $modulePermissions) && in_array('custom-clearance-status-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'custom-clearance-status' ? 'active' : ''); ?>" href="<?php echo e(url('custom-clearance-status')); ?>">Custom Clearance Status</a>
          </li>
          <?php endif; ?>

          <?php if(in_array('CONSIGNMENT_BOOKING_STATUS', $modulePermissions) && in_array('consignment-booking-status-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'consignment-booking-status' ? 'active' : ''); ?>" href="<?php echo e(url('consignment-booking-status')); ?>">Consignment Booking Status</a>
          </li>
          <?php endif; ?>

          <?php if(in_array('TRANSPORT_TYPE', $modulePermissions) && in_array('transport-type-list', $authRolePermissions)): ?>
          <li>
            <a class="dropdown-item <?php echo e(request()->segment(1) == 'transport-type' ? 'active' : ''); ?>" href="<?php echo e(url('transport-type')); ?>">Transport Type</a>
          </li>
          <?php endif; ?>
        </ul>
      </div>
    </li>
  </ul>
</nav>
<!-- End Of Settings -->

<!-- API Management -->
<?php elseif(
request()->segment(1) == 'storage-settings' ||
request()->segment(1) == 'e-invoice-settings' ||
request()->segment(1) == 'e-way-bill-api-settings' ||
request()->segment(1) == 'smstemplate' ||
request()->segment(1) == 'e-mail-apis' ||
request()->segment(1) == 'abdm-apis' ||
request()->segment(1) == 'abdm-api-calls' ||
request()->segment(1) == 'meta-mint-apis' ||
request()->segment(1) == 'api-management'): ?>

<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>

    <?php if(in_array('API_MANAGEMENT', $modulePermissions) && in_array('api-management-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'api-management' ? 'active' : ''); ?>" href="<?php echo e(url('api-management')); ?>">API Management</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('SMS_API', $modulePermissions) && in_array('smstemplate-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'smstemplate' ? 'active' : ''); ?>" href="<?php echo e(url('smstemplate')); ?>">SMS Settings</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('SMS_API', $modulePermissions) && in_array('storage-settings-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'storage-settings' ? 'active' : ''); ?>" href="<?php echo e(url('storage-settings')); ?>">Storage Setting</a>
    </li>
    <?php endif; ?>
    
    <li>
      <a class="<?php echo e(request()->segment(1) == 'e-invoice-settings' ? 'active' : ''); ?>" href="<?php echo e(url('e-invoice-settings')); ?>">E Invoice Settings</a>
    </li>
    
    
    <li>
      <a class="<?php echo e(request()->segment(1) == 'e-way-bill-api-settings' ? 'active' : ''); ?>" href="<?php echo e(url('e-way-bill-api-settings')); ?>">E Way Bill API Settings</a>
    </li>
    
    
    <li>
      <a class="<?php echo e(request()->segment(1) == 'e-mail-apis' ? 'active' : ''); ?>" href="<?php echo e(url('e-mail-apis')); ?>">Email API </a>
    </li>
    

    <?php if(in_array('abdm-apis-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'abdm-apis' ? 'active' : ''); ?>" href="<?php echo e(url('abdm-apis')); ?>">ABDM Apis </a>
    </li>
    <?php endif; ?>


    <?php if(in_array('abdm-api-calls-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'abdm-api-calls' ? 'active' : ''); ?>" href="<?php echo e(url('abdm-api-calls')); ?>">ABDM Api Calls </a>
    </li>
    <?php endif; ?>


    <?php if(in_array('meta-mint-api-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'meta-mint-apis' ? 'active' : ''); ?>" href="<?php echo e(url('meta-mint-apis')); ?>">Meta Mint API </a>
    </li>
    <?php endif; ?>
  </ul>
</nav>
<!-- End Of API Management -->

<!-- Medical Settings -->
<?php elseif(
request()->segment(1) == 'body-vitals'): ?>

<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>
    <?php if(in_array('BODY_VITALS', $modulePermissions) && in_array('body-vitals-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'body-vitals' ? 'active' : ''); ?>" href="<?php echo e(route('body-vitals.index')); ?>">Body Vitals</a>
    </li>
    <?php endif; ?>

  </ul>
</nav>
<!-- End Of Medical Settings -->
<?php elseif(
request()->segment(1) == 'journal-voucher'||
request()->segment(1) == 'receipt-voucher'||
request()->segment(1) == 'contra-vouchers'||
request()->segment(1) == 'payment-voucher'||
request()->segment(1) == 'findings'||
request()->segment(1) == 'finding-categories'||
request()->segment(1) == 'operations'||
request()->segment(1) == 'all-transactions' ||
request()->segment(1) == 'operation-categories'||
request()->segment(1) == 'trial-balance' ||
request()->segment(1) == 'profit-and-loss' ||
request()->segment(1) == 'balance-sheet'): ?>
<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>

    <?php if(in_array('Receipt_VOUCHER', $modulePermissions) && in_array('receipt-voucher-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'receipt-voucher' ? 'active' : ''); ?>" href="<?php echo e(route ('receipt-voucher.index')); ?>">Receipt Voucher</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('PAYMENT_VOUCHER', $modulePermissions) && in_array('payment-voucher-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'payment-voucher' ? 'active' : ''); ?>" href="<?php echo e(route ('payment-voucher.index')); ?>">Payment Voucher</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('JOURNAL_VOUCHER', $modulePermissions) && in_array('journal-voucher-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'journal-voucher' ? 'active' : ''); ?>" href="<?php echo e(route ('journal-voucher.index')); ?>">Journal Voucher</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('CONTRA_VOUCHER', $modulePermissions) && in_array('contra-voucher-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'contra-vouchers' ? 'active' : ''); ?>" href="<?php echo e(route ('contra-vouchers.index')); ?>">Contra Voucher</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('Receipt_VOUCHER', $modulePermissions) ||
      in_array('PAYMENT_VOUCHER', $modulePermissions) ||
      in_array('JOURNAL_VOUCHER', $modulePermissions) ||
      in_array('CONTRA_VOUCHER', $modulePermissions)
    ): ?>
    <?php if(in_array('receipt-voucher-list', $authRolePermissions) ||
      in_array('payment-voucher-list', $authRolePermissions) ||
      in_array('journal-voucher-list', $authRolePermissions) ||
      in_array('contra-voucher-list', $authRolePermissions)
    ): ?>
    <li>
      <a class=" <?php echo e(request()->segment(1) == 'all-transactions' ? 'active' : ''); ?>" href="<?php echo route('all-transactions.index'); ?>">All Transactions</a>
    </li>
    <?php endif; ?>
    <?php endif; ?>

    <li>
      <a class=" <?php echo e(request()->segment(1) == 'trial-balance' ? 'active' : ''); ?>" href="<?php echo route('trial-balance'); ?>">Trial Balance</a>
    </li>
    <li>
      <a class=" <?php echo e(request()->segment(1) == 'profit-and-loss' ? 'active' : ''); ?>" href="<?php echo route('profitAndLoss'); ?>">Profit And Loss</a>
    </li>
    <li>
      <a class=" <?php echo e(request()->segment(1) == 'balance-sheet' ? 'active' : ''); ?>" href="<?php echo route('balanceSheet'); ?>">Balance Sheet</a>
    </li>
  </ul>
</nav>
<?php elseif(
request()->segment(1) == 'vouchers-master'||
request()->segment(1) == 'voucher-types'||
request()->segment(1) == 'voucher-track-status' ||
request()->segment(1) == 'voucher-series'): ?>
<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>

    <?php if(in_array('VOUCHERS_MASTER', $modulePermissions) && in_array('vouchers-master-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'vouchers-master' ? 'active' : ''); ?>" href="<?php echo e(route ('vouchers-master.index')); ?>">Voucher Master</a>
    </li>
    <?php endif; ?>
    
    <?php if(in_array('VOUCHER_SERIES', $modulePermissions) && in_array('voucher-series-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'voucher-series' ? 'active' : ''); ?>" href="<?php echo e(route ('voucher-series.index')); ?>">Voucher Series</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('VOUCHER_TRACK_STATUS', $modulePermissions) && in_array('voucher-track-status-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'voucher-track-status' ? 'active' : ''); ?>" href="<?php echo e(route('voucher-track-status.index')); ?>">Voucher Track Status</a>
    </li>
    <?php endif; ?>

  </ul>
</nav>


<?php elseif(
request()->segment(1) == 'license-registered'||
request()->segment(1) == 'license-dashboard'||
request()->segment(1) == 'product-features'||
request()->segment(1) == 'user-license'||
request()->segment(1) == 'customer-list'||
request()->segment(1) == 'industry-type'||
request()->segment(1) == 'plan-and-packages'||
request()->segment(1) == 'user-license-validity'||
request()->segment(1) == 'biling-interval'||
request()->segment(1) == 'license-details'||
request()->segment(1) == 'server'): ?>
<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'license-dashboard' ? 'active' : ''); ?>" href="<?php echo e(route ('license.dashboard')); ?>">Dashboard</a>
    </li>
    <?php if(in_array('LICENSE_REGISTERED', $modulePermissions) && in_array('license-registered-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'license-registered' ? 'active' : ''); ?>" href="<?php echo e(route ('license-register.index')); ?>">License Register</a>
    </li>
    <?php endif; ?>
    <?php if(in_array('CUSTOMER', $modulePermissions) && in_array('customer-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'customer-list' ? 'active' : ''); ?>" href="<?php echo e(route ('customer-list.index')); ?>">Customer List</a>
    </li>
    <?php endif; ?>
    <?php if(in_array('PLANE_AND_PACKAGES', $modulePermissions) && in_array('plan-and-packages-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'plan-and-packages' ? 'active' : ''); ?>" href="<?php echo e(route ('plan-and-packages.index')); ?>">Plan & Packages</a>
    </li>
    <?php endif; ?>
    <?php if(in_array('INDUSTRY_TYPE', $modulePermissions) && in_array('industry-type-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'industry-type' ? 'active' : ''); ?>" href="<?php echo e(route ('industry-type.index')); ?>">Industry Type</a>
    </li>
    <?php endif; ?>
    <?php if(in_array('PRODUCT_FEATURE', $modulePermissions) && in_array('product-feature-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'product-features' ? 'active' : ''); ?>" href="<?php echo e(route ('product-features.index')); ?>">Product Features</a>
    </li>
    <?php endif; ?>
    <?php if(in_array('CLIENT_LICENSE', $modulePermissions) && in_array('client-license-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'user-license' ? 'active' : ''); ?>" href="<?php echo e(route ('user-license.index')); ?>">Client License</a>
    </li>
    <?php endif; ?>
    <?php if(in_array('CLIENT_LICENSE_VALIDITY', $modulePermissions) && in_array('client-license-validity-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'user-license-validity' ? 'active' : ''); ?>" href="<?php echo e(route ('user-license-validity.index')); ?>">License Validity</a>
    </li>
    <?php endif; ?>
    

    <li>
        <div class="btn-group dropend">
          <button type="button" class="btn btn-link dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
            More<i class="bi bi-arrow-down ms-1"></i>
          </button>
          <ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDarkDropdownMenuLink">
            <?php if(in_array('BILLING_INTERVAL', $modulePermissions)): ?>
            <?php if(in_array('billing-interval-list', $authRolePermissions)): ?>
            <li>
                <a class="dropdown-item <?php echo e(request()->segment(1) == 'biling-interval' ? 'active' : ''); ?>" href="<?php echo e(route('biling-interval.index')); ?>">Billing Interval</a>
            </li>
            <?php endif; ?>
            <?php endif; ?>
            <?php if(in_array('SERVER', $modulePermissions)): ?>
            <?php if(in_array('server-list', $authRolePermissions)): ?>
            <li>
                <a class="dropdown-item <?php echo e(request()->segment(1) == 'server' ? 'active' : ''); ?>" href="<?php echo e(route('server.index')); ?>">Server</a>
            </li>
            <?php endif; ?>
            <?php endif; ?>

          </ul>
        </div>
      </li>

  </ul>
</nav>
<!-- website managment -->
<?php elseif(
request()->segment(1) == 'sliders'||
request()->segment(1) == 'content-category' ||
request()->segment(1) == 'content-sub-category'||
request()->segment(1) == 'public-content' ||
request()->segment(1) == 'photos-gallery' ||
request()->segment(1) == 'videos-gallery' ||
request()->segment(1) == 'pages-setting' ||
request()->segment(1) == 'notices' ||
request()->segment(1) == 'social-media' ||
request()->segment(1) == 'faqs' ||
request()->segment(1) == 'services' ||
request()->segment(1) == 'blogs' ||
request()->segment(1) == 'blog-categories' ||
request()->segment(1) == 'testimonials' ||
request()->segment(1) == 'file-manager' ||
request()->segment(1) == 'teams'        ||
request()->segment(1) == 'branches'     ||
request()->segment(1) == 'brands-logo'  ||
request()->segment(1) == 'career-vacancy'  ||
request()->segment(1) == 'job-application'  ||
request()->segment(1) == 'news-letter'
): ?>
<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>
    <?php if(in_array('NOTICE', $modulePermissions) && in_array('notice-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'notices' ? 'active' : ''); ?>" href="<?php echo e(route ('notices.index')); ?>">Notices</a>
    </li>
    <?php endif; ?>
    <?php if(in_array('WEBSITE_PAGES_SETTINGS', $modulePermissions) && in_array('website-pages-settings-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'pages-setting' ? 'active' : ''); ?>" href="<?php echo e(route ('pages-setting.index')); ?>">Web Pages</a>
    </li>
    <?php endif; ?>
    <?php if(in_array('WEBSITE_SLIDER', $modulePermissions) && in_array('website-slider-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'sliders' ? 'active' : ''); ?>" href="<?php echo e(route ('sliders.index')); ?>">Sliders</a>
    </li>
    <?php endif; ?>
    <?php if(in_array('WEBSITE_PHOTO_GALLERY', $modulePermissions) && in_array('website-photo-gallery-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'photos-gallery' ? 'active' : ''); ?>" href="<?php echo e(route ('photos-gallery.index')); ?>">Photo Gallery</a>
    </li>
    <?php endif; ?>
    <?php if(in_array('WEBSITE_VIDEO_GALLERY', $modulePermissions) && in_array('website-video-gallery-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'videos-gallery' ? 'active' : ''); ?>" href="<?php echo e(route ('videos-gallery.index')); ?>">Video Gallery</a>
    </li>
    <?php endif; ?>
    <?php if(in_array('WEBSITE_SERVICES', $modulePermissions) && in_array('website-services-list', $authRolePermissions)): ?>
      <li>
        <a class="<?php echo e(request()->segment(1) == 'services' ? 'active' : ''); ?>" href="<?php echo e(route ('services.index')); ?>">Services</a>
      </li>
    <?php endif; ?>
    <?php if(in_array('WEBSITE_BLOGS', $modulePermissions) && in_array('website-blogs-list', $authRolePermissions)): ?>
      <li>
        <a class="<?php echo e(request()->segment(1) == 'blogs' ? 'active' : ''); ?>" href="<?php echo e(route ('blogs.index')); ?>">Blogs</a>
      </li>
    <?php endif; ?>
    <?php if(in_array('WEBSITE_CONTENT', $modulePermissions) && in_array('website-content-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'public-content' ? 'active' : ''); ?>" href="<?php echo e(route ('public-content.index')); ?>">Public Content</a>
    </li>
    <?php endif; ?>
    <?php if(in_array('WEBSITE_CONTENT_CATEGORY', $modulePermissions) && in_array('website-content-category-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'content-category' ? 'active' : ''); ?>" href="<?php echo e(route ('content-category.index')); ?>">Main Category</a>
    </li>
    <?php endif; ?>
    <?php if(in_array('WEBSITE_CONTENT_SUB_CATEGORY', $modulePermissions) && in_array('website-content-sub-category-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'content-sub-category' ? 'active' : ''); ?>" href="<?php echo e(route ('content-sub-category.index')); ?>">Sub Category</a>
    </li>
    <?php endif; ?>
   
   
    <?php if(in_array('FILE-MANAGER', $modulePermissions) && in_array('file-manager-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'file-manager' ? 'active' : ''); ?>" href="<?php echo e(route ('file-manager.index')); ?>">File Manager</a>
    </li>
    <?php endif; ?>

    <li>
      <div class="btn-group dropend">
        <button type="button" class="btn btn-link dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
          More<i class="bi bi-arrow-down ms-1"></i>
        </button>
        <ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDarkDropdownMenuLink">
          <?php if(in_array('WEBSITE_SOCIAL_MEDIA', $modulePermissions) && in_array('website-social-media-list', $authRolePermissions)): ?>
          <li>
            <a class="<?php echo e(request()->segment(1) == 'social-media' ? 'active' : ''); ?> dropdown-item" href="<?php echo e(route ('social-media.index')); ?>">Social Media</a>
          </li>
          <?php endif; ?>
          <?php if(in_array('WEBSITE_FAQ', $modulePermissions) && in_array('website-faq-list', $authRolePermissions)): ?>
          <li>
            <a class="<?php echo e(request()->segment(1) == 'faqs' ? 'active' : ''); ?> dropdown-item" href="<?php echo e(route ('faqs.index')); ?>">FAQ</a>
          </li>
          <?php endif; ?>
          <?php if(in_array('WEBSITE_SERVICES', $modulePermissions) && in_array('website-services-list', $authRolePermissions)): ?>
          <li>
            <a class="<?php echo e(request()->segment(1) == 'services' ? 'active' : ''); ?> dropdown-item" href="<?php echo e(route ('services.index')); ?>">Services</a>
          </li>
          <?php endif; ?>
          <?php if(in_array('WEBSITE_BLOGS', $modulePermissions) && in_array('website-blogs-list', $authRolePermissions)): ?>
          <li>
            <a class="<?php echo e(request()->segment(1) == 'blogs' ? 'active' : ''); ?> dropdown-item" href="<?php echo e(route ('blogs.index')); ?>">Blogs</a>
          </li>
          <?php endif; ?>
          <?php if(in_array('BLOG_CATEGORIES', $modulePermissions) && in_array('blog-categories-list', $authRolePermissions)): ?>
          <li>
            <a class="<?php echo e(request()->segment(1) == 'blog-categories' ? 'active' : ''); ?> dropdown-item" href="<?php echo e(route ('blog-categories.index')); ?>">Blogs Categories</a>
          </li>
          <?php endif; ?>
          <?php if(in_array('WEBSITE_TESTIMONIALS', $modulePermissions) && in_array('website-testimonials-list', $authRolePermissions)): ?>
          <li>
            <a class="<?php echo e(request()->segment(1) == 'testimonials' ? 'active' : ''); ?> dropdown-item" href="<?php echo e(route ('testimonials.index')); ?>">Testimonials</a>
          </li>
          <?php endif; ?>
          <?php if(in_array('WEBSITE_TEAMS', $modulePermissions) && in_array('website-teams-list', $authRolePermissions)): ?>
          <li>
            <a class="<?php echo e(request()->segment(1) == 'teams' ? 'active' : ''); ?> dropdown-item" href="<?php echo e(route ('teams.index')); ?>">Teams</a>
          </li>
          <?php endif; ?>
          <?php if(in_array('BRANCHES', $modulePermissions) && in_array('branch-list', $authRolePermissions)): ?>
          <li>
            <a class="<?php echo e(request()->segment(1) == 'branches' ? 'active' : ''); ?> dropdown-item" href="<?php echo e(route ('branches.index')); ?>">Branches</a>
          </li>
          <?php endif; ?>
          <?php if(in_array('BRANDS_LOGO', $modulePermissions) && in_array('brands-logo-list', $authRolePermissions)): ?>
          <li>
            <a class="<?php echo e(request()->segment(1) == 'brands-logo' ? 'active' : ''); ?> dropdown-item" href="<?php echo e(route ('brands-logo.index')); ?>">Brand Logo</a>
          </li>
          <?php endif; ?>
          <li>
            <a class="<?php echo e(request()->segment(1) == 'news-letter' ? 'active' : ''); ?> dropdown-item" href="<?php echo e(route ('news-letter.index')); ?>">News Letters</a>
          </li>
          <?php if(in_array(' CAREER_VACANCY', $modulePermissions) && in_array('career-vacancy-list', $authRolePermissions)): ?>
          <li>
            <a class="<?php echo e(request()->segment(1) == 'career-vacancy' ? 'active' : ''); ?> dropdown-item" href="<?php echo e(route ('career-vacancy.index')); ?>">Career Vacancies</a>
          </li>
          <?php endif; ?>
          <?php if(in_array('JOB_APPPLICATION', $modulePermissions) && in_array('job-application-list', $authRolePermissions)): ?>
          <li>
            <a class="<?php echo e(request()->segment(1) == 'job-application' ? 'active' : ''); ?> dropdown-item" href="<?php echo e(route ('job-application.index')); ?>">Job Application</a>
          </li>
          <?php endif; ?>
        </ul>
      </div>
    </li>


  </ul>
</nav>

<?php elseif(
request()->segment(1) == 'marketing' ||
request()->segment(1) == 'business-categories'): ?>

<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>
    <?php if(in_array('MARKETING', $modulePermissions) && in_array('marketing-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'marketing' ? 'active' : ''); ?>" href="<?php echo e(route('marketing.index')); ?>">Marketing List</a>
    </li>
    <?php endif; ?>
    <?php if(in_array('BUSINESS_CATEGORY', $modulePermissions) && in_array('business-category-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'business-categories' ? 'active' : ''); ?>" href="<?php echo e(route('business-categories.index')); ?>">Business Category</a>
    </li>
    <?php endif; ?>
<?php elseif(
request()->segment(1) == 'projects' ||
request()->segment(1) == 'project-types'||
request()->segment(1) == 'budget-types'||
request()->segment(1) == 'tasks'||
request()->segment(1) == 'project-budget'): ?>

<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>

    <?php if(in_array('PROJECTS', $modulePermissions) && in_array('projects-list', $authRolePermissions)): ?>
    <li>
        <a class="<?php echo e(request()->segment(1) == 'projects' ? 'active' : ''); ?>" href="<?php echo e(route('projects.index')); ?>">Projects</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('PROJECT_TYPE', $modulePermissions) && in_array('project-type-list', $authRolePermissions)): ?>
    <li>
        <a class="<?php echo e(request()->segment(1) == 'project-types' ? 'active' : ''); ?>" href="<?php echo e(route('project-types.index')); ?>">Project Type</a>
    </li>
    <?php endif; ?>
    <?php if(in_array('BUDGET_TYPES', $modulePermissions) && in_array('budget-types-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'budget-types' ? 'active' : ''); ?>" href="<?php echo e(route('budget-types.index')); ?>">Budget Type</a>
    </li>
    <?php endif; ?>

  </ul>
</nav>
<!-- End Of marketing -->

<!-- Library Management -->
<?php elseif(
request()->segment(1) == 'designation'||
request()->segment(1) == 'employee'||
request()->segment(1) == 'employee-type'): ?>

<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>
    <?php if(in_array('EMPLOYEE', $modulePermissions) && in_array('employee-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'employee' ? 'active' : ''); ?>" href="<?php echo e(route('employee.index')); ?>">Employee</a>
    </li>
    <?php endif; ?>
    <?php if(in_array('Designation', $modulePermissions) && in_array('designation-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'designation' ? 'active' : ''); ?>" href="<?php echo e(route('designation.index')); ?>">Designation</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('EMPLOYEE_TYPE', $modulePermissions) && in_array('employee-type-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'employee-type' ? 'active' : ''); ?>" href="<?php echo e(route('employee-type.index')); ?>">Employee Type</a>
    </li>
    <?php endif; ?>
  </ul>
</nav>
<!-- Library Management -->
<!-- Start of lab reporting -->
<?php elseif(
request()->segment(1) == 'queue-manager'
): ?>

<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>
      <li>
        <a class="<?php echo e(request()->segment(2) == 'doctor-display' ? 'active' : ''); ?>" href="<?php echo e(route('queue-manager.index')); ?>">Doctor Display</a>
      </li>
      <li>
        <a class="<?php echo e(request()->segment(2) == 'patient-display' ? 'active' : ''); ?>" href="<?php echo e(route('queue-manager.index')); ?>">Patient Display</a>
      </li>

  </ul>
</nav>



<?php elseif(
request()->segment(1) == 'sale' ||
request()->segment(1) == 'sale-return'
): ?>

<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>
      <li>
        <a class="<?php echo e(request()->segment(1) == 'sale' ? 'active' : ''); ?>" href="<?php echo e(route('sale.index')); ?>">Sales</a>
      </li>
      <?php if(in_array('sale-return-list', $authRolePermissions)): ?>
      <li>
        <a class="<?php echo e(request()->segment(1) == 'sale-return' ? 'active' : ''); ?>" href="<?php echo e(route('sale-return.index')); ?>">Sale Returns</a>
      </li>
      <?php endif; ?>
      

  </ul>
</nav>


<?php elseif(
request()->segment(1) == 'purchase' 
): ?>

<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>
      <?php if(in_array('purchase-list', $authRolePermissions)): ?>
      <li>
        <a class="<?php echo e(request()->segment(1) == 'purchase' ? 'active' : ''); ?>" href="<?php echo e(route('purchase.index')); ?>">Purchase</a>
      </li>
      <?php endif; ?>
      

  </ul>
</nav>

<?php elseif(
request()->segment(1) == 'inventory-stock' ||
request()->segment(1) == 'stock-movement-type' ||
request()->segment(1) == 'stock-in'         ||
request()->segment(1) == 'stock-out'        || 
request()->segment(1) == 'opening-stock'    ||
request()->segment(1) ==  'stock-short-list'
): ?>

<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>
    <?php if(in_array('inventory-stock-list', $authRolePermissions)): ?>
      <li>
        <a class="<?php echo e(request()->segment(1) == 'inventory-stock' ? 'active' : ''); ?>" href="<?php echo e(route('inventory-stock.index')); ?>">Inventory & Stock</a>
      </li>
    <?php endif; ?>
    <?php if(in_array('stock-in-list', $authRolePermissions)): ?>
      <li>
        <a class="<?php echo e(request()->segment(1) == 'stock-in' ? 'active' : ''); ?>" href="<?php echo e(route('stock-in.index')); ?>">Stock In</a>
      </li>
    <?php endif; ?>
    <?php if(in_array('stock-out-list', $authRolePermissions)): ?>
      <li>
        <a class="<?php echo e(request()->segment(1) == 'stock-out' ? 'active' : ''); ?>" href="<?php echo e(route('stock-out.index')); ?>">Stock Out</a>
      </li>
    <?php endif; ?>
    <?php if(in_array('stock-short-list-list', $authRolePermissions)): ?>
      <li>
        <a class="<?php echo e(request()->segment(1) == 'stock-short-list' ? 'active' : ''); ?>" href="<?php echo e(route('stock-short-list.index')); ?>">Shortlist</a>
      </li>
    <?php endif; ?>
    <?php if(in_array('stock-movement-type-list', $authRolePermissions)): ?>
      <li>
        <a class="<?php echo e(request()->segment(1) == 'stock-movement-type' ? 'active' : ''); ?>" href="<?php echo e(route('stock-movement-type.index')); ?>">Stock Movement Type</a>
      </li>
    <?php endif; ?>
    <?php if(in_array('opening-stock-list', $authRolePermissions)): ?>
      <li>
        <a class="<?php echo e(request()->segment(1) == 'opening-stock' ? 'active' : ''); ?>" href="<?php echo e(route('opening-stock.index')); ?>">Opening Stock</a>
      </li>
    <?php endif; ?>
      
  </ul>
</nav>


<?php elseif(
request()->segment(1) == 'vehicle-register' ||
request()->segment(1) == 'vehicle-types' ||
request()->segment(1) == 'vehicle-document-types' 
): ?>

<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>
     
    <?php if(in_array('vehicle-register', $authRolePermissions)): ?>
      <li>
        <a class="<?php echo e(request()->segment(1) == 'vehicle-register' ? 'active' : ''); ?>" href="<?php echo e(route('vehicle-register')); ?>">Vehicle Register </a>
      </li>
    <?php endif; ?>
      <li>
        <a class="<?php echo e(request()->segment(1) == 'vehicle-types' ? 'active' : ''); ?>" href="<?php echo e(route('vehicle-types.index')); ?>">Vehicle Types</a>
      </li> 
      <li>
        <a class="<?php echo e(request()->segment(1) == 'vehicle-document-types' ? 'active' : ''); ?>" href="#">Document Types</a>
      </li>
      
  </ul>
</nav>




<?php elseif(
request()->segment(1) == 'task-manager' ||
request()->segment(1) == 'task-groups' ||
request()->segment(1) == 'pipeline-stages' ||
request()->segment(1) == 'task-teams' ||
request()->segment(1) == 'task-types'|| 
request()->segment(1) == 'task-priority'||
request()->segment(1) == 'task-status' ||
request()->segment(1) == 'task-charges'
): ?>

<nav class="table_menu">
  <ul class="NavMenu">
    <li><i class="bi bi-list"></i></li>
     
    <?php if(in_array('task-manager-list', $authRolePermissions)): ?>
      <li>
        <a class="<?php echo e(request()->segment(1) == 'task-manager' ? 'active' : ''); ?>" href="<?php echo e(route('task-manager.index')); ?>">Task Manager </a>
      </li>
    <?php endif; ?>
      <li>
        <a class="<?php echo e(request()->segment(1) == 'task-groups' ? 'active' : ''); ?>" href="<?php echo e(route('task-groups.index')); ?>">Task Groups</a>
      </li> 

      <li>
        <a class="<?php echo e(request()->segment(1) == 'pipeline-stages' ? 'active' : ''); ?>" href="<?php echo e(route('pipeline-stages.index')); ?>">Task Stages</a>
      </li> 
      <li>
        <a class="<?php echo e(request()->segment(1) == 'task-teams' ? 'active' : ''); ?>" href="<?php echo e(route('task-teams.index')); ?>">Task Teams</a>
      </li> 
      
    <?php if(in_array('TASK_PRIORITY', $modulePermissions) && in_array('task-priority-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'task-priority' ? 'active' : ''); ?>" href="<?php echo e(route('task-priority.index')); ?>">Task Priority</a>
    </li>
    <?php endif; ?>

    <?php if(in_array('TASK_TYPE', $modulePermissions) && in_array('task-type-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'task-types' ? 'active' : ''); ?>" href="<?php echo e(route('task-types.index')); ?>">Task Type</a>
    </li>
    <?php endif; ?>
    
    <li>
        <a class="<?php echo e(request()->segment(1) == 'task-charges' ? 'active' : ''); ?>" href="<?php echo e(route('task-charges.index')); ?>">Task Charges</a>
    </li>
    
    <?php if(in_array('TASK_STATUS', $modulePermissions) && in_array('task-status-list', $authRolePermissions)): ?>
    <li>
      <a class="<?php echo e(request()->segment(1) == 'task-status' ? 'active' : ''); ?>" href="<?php echo e(route('task-status.index')); ?>">Task Status</a>
    </li>
    <?php endif; ?>
      
  </ul>
</nav>

<?php endif; ?>
<?php /**PATH C:\laragon\www\meta-mint-logistics\resources\views/layouts/partials/nav-menu.blade.php ENDPATH**/ ?>