<?php
/**
 * CubeCart v6
 * ========================================
 * CubeCart is a registered trade mark of CubeCart Limited
 * Copyright CubeCart Limited 2026. All rights reserved.
 * UK Private Limited Company No. 5323904
 * ========================================
 * Web:   https://www.cubecart.com
 * Email:  hello@cubecart.com
 * License:  GPL-3.0 https://www.gnu.org/licenses/quick-guide-gplv3.html
 */
if (!defined('CC_INI_SET')) {
    die('Access Denied');
}
$nav_sections = array(
    'customers'  => $lang['navigation']['nav_customers'],
    'inventory'  => $lang['navigation']['nav_inventory'],
    'reporting'  => $lang['navigation']['nav_reporting'],
    'filemanager' => $lang['navigation']['nav_file_manager'],
    'settings'  => $lang['navigation']['nav_settings'],
    'modules'  => $lang['navigation']['nav_modules'],
    'advanced'  => $lang['navigation']['nav_advanced']
);

$nav_items['customers']  = array(
    $lang['navigation']['nav_customer_list'] => '?_g=customers',
    $lang['navigation']['nav_orders']   => '?_g=orders',
    $lang['navigation']['nav_transaction_logs'] => '?_g=orders&node=transactions',
    $lang['navigation']['nav_newsletters']  => '?_g=customers&node=email',
    $lang['navigation']['nav_subscribers']  => '?_g=customers&node=subscribers'
);

$nav_items['inventory']  = array(
    $lang['navigation']['nav_categories']  => array('address' => '?_g=categories', 'id' => 'nav_categories'),
    $lang['navigation']['nav_products']   => array('address' => '?_g=products&node=index', 'id' => 'nav_products'),
    $lang['navigation']['nav_prod_reviews']  => '?_g=products&node=reviews',
    $lang['navigation']['nav_product_options'] => '?_g=products&node=options',
    $lang['navigation']['nav_coupons']   => '?_g=products&node=coupons',
    $lang['navigation']['nav_manufacturers'] => '?_g=products&node=manufacturers',
    $lang['navigation']['nav_cat_import']  => '?_g=products&node=import',
    $lang['navigation']['nav_cat_export']  => '?_g=products&node=export',
    $lang['catalogue']['title_bulk_prices']  => '?_g=products&node=assign&prices=1'
);

$nav_items['reporting']  = array(
    $lang['navigation']['nav_sales_reports'] => '?_g=reports',
    $lang['navigation']['nav_statistics']  => '?_g=statistics',
    $lang['navigation']['nav_email_log']  => '?_g=statistics&node=emaillog'
);

$nav_items['filemanager'] = array(
    $lang['navigation']['nav_documents']  => array('address' => '?_g=documents', 'id' => 'nav_docs'),
    $lang['navigation']['nav_downloads']  => '?_g=filemanager&mode=digital',
    $lang['navigation']['nav_images']   => '?_g=filemanager',
    $lang['navigation']['nav_email_templates'] => '?_g=documents&node=email',
    $lang['navigation']['nav_contact_form']  => '?_g=documents&node=contact'
);

$nav_items['settings']  = array(
    $lang['navigation']['nav_administrators'] => '?_g=settings&node=admins',
    $lang['navigation']['nav_settings_store'] => array('address' => '?_g=settings', 'id' => 'nav_settings'),
    $lang['navigation']['nav_certificates']  => '?_g=settings&node=giftCertificates',
    $lang['navigation']['nav_currencies']  => '?_g=settings&node=currency',
    $lang['navigation']['nav_taxes']   => '?_g=settings&node=tax',
    $lang['navigation']['nav_regions']   => '?_g=settings&node=geo',
    $lang['navigation']['nav_languages']  => '?_g=settings&node=language',
    'API Keys'          => '?_g=settings&node=apikeys'
);

$nav_items['modules']  = array(
    $lang['navigation']['nav_plugins']   => array('address' => '?_g=plugins', 'id' => 'nav_plugins')
);

$nav_items['advanced']  = array(
    $lang['navigation']['nav_maintenance']  => '?_g=maintenance',
    $lang['navigation']['nav_manage_hooks']  => '?_g=settings&node=hooks',
    $lang['navigation']['nav_redirects404s']  => '?_g=settings&node=redirects',
    $lang['navigation']['nav_request_log']  => '?_g=settings&node=requestlog',
    $lang['navigation']['nav_access_log']  => '?_g=settings&node=logs',
    $lang['navigation']['nav_error_log']  => '?_g=settings&node=errorlog',
    $lang['navigation']['nav_server_info']  => '?_g=phpinfo',
    $lang['settings']['release_notes']  => '?_g=release_notes'
);

// Include menu item hooks
foreach ($GLOBALS['hooks']->load('admin.navigation') as $hook) {
    include $hook;
}
