menu_shop.php 3.44 KB
<?php
    
    return [
        
        [
            'label' => \Yii::t('app', 'Catalog'),
            'url'   => '#',
            'icon'  => 'tags',
            'items' => [
                [
                    'label' => \Yii::t('catalog', 'Categories'),
                    'url'   => [ '/category/index' ],
                    'icon'  => 'file-text',
                ],
                [
                    'label' => \Yii::t('catalog', 'Brands'),
                    'url'   => [ '/brand/index' ],
                    'icon'  => 'file-text',
                ],
                [
                    'label' => \Yii::t('catalog', 'Products'),
                    'url'   => [ '/product/index' ],
                    'icon'  => 'gift',
                ],
                [
                    'label' => \Yii::t('catalog', 'Import'),
                    'url'   => [ '/import/index' ],
                    'icon'  => 'download',
                ],
                [
                    'label' => \Yii::t('catalog', 'Export'),
                    'url'   => [ '/export/index' ],
                    'icon'  => 'upload',
                ],
            ],
        ],
        [
            'label' => \Yii::t('app', 'Options'),
            'url'   => '#',
            'icon'  => 'filter',
            'items' => [
                [
                    'label' => \Yii::t('app', 'Options for products'),
                    'url'   => '#',
                    'items' => [
                        [
                            'label' => \Yii::t('app', 'Complementary'),
                            'url'   => [ '/product-option-group-complementary/index' ],
                        ],
                        [
                            'label' => \Yii::t('app', 'Exclusion'),
                            'url'   => [ '/product-option-group-exclusion/index' ],
                        ],
                    ],
                ],
                [
                    'label' => \Yii::t('app', 'Options for variants'),
                    'url'   => '#',
                    'items' => [
                        [
                            'label' => \Yii::t('app', 'Complementary'),
                            'url'   => [ '/variant-option-group-complementary/index' ],
                        ],
                        [
                            'label' => \Yii::t('app', 'Exclusion'),
                            'url'   => [ '/variant-option-group-exclusion/index' ],
                        ],
                    ],
                ],
            ],
        ],
        [
            'label' => \Yii::t('order', 'Order'),
            'url'   => '#',
            'icon'  => 'archive',
            'items' => [
                [
                    'label' => \Yii::t('order', 'Orders'),
                    'url'   => [ '/order/index' ],
                    'icon'  => 'first-order',
                ],
                [
                    'label' => \Yii::t('order', 'Label'),
                    'url'   => [ '/label/index' ],
                    'icon'  => 'tag',
                ],
                [
                    'label' => \Yii::t('order', 'Delivery'),
                    'url'   => [ '/delivery/index' ],
                    'icon'  => 'truck',
                ],
                [
                    'label' => \Yii::t('order', 'Payment'),
                    'url'   => [ '/payment/index' ],
                    'icon'  => 'money',
                ],
            ],
        ],
    ];