<?php

return [
    [
        'name' => 'E-commerce',
        'flag' => 'plugins.ecommerce',
    ],

    [
        'name' => 'Reports',
        'flag' => 'ecommerce.report.index',
        'parent_flag' => 'plugins.ecommerce',
    ],

    /**
     * Products
     */
    [
        'name' => 'Products',
        'flag' => 'products.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Create',
        'flag' => 'products.create',
        'parent_flag' => 'products.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'products.edit',
        'parent_flag' => 'products.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'products.destroy',
        'parent_flag' => 'products.index',
    ],
    [
        'name' => 'Duplicate',
        'flag' => 'products.duplicate',
        'parent_flag' => 'products.index',
    ],

    /**
     * Product Prices
     */
    [
        'name' => 'Product Prices',
        'flag' => 'ecommerce.product-prices.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Update',
        'flag' => 'ecommerce.product-prices.edit',
        'parent_flag' => 'ecommerce.product-prices.index',
    ],

    /**
     * Product Inventory
     */

    [
        'name' => 'Product Inventory',
        'flag' => 'ecommerce.product-inventory.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Update',
        'flag' => 'ecommerce.product-inventory.edit',
        'parent_flag' => 'ecommerce.product-inventory.index',
    ],

    /**
     * Categories
     */
    [
        'name' => 'Product categories',
        'flag' => 'product-categories.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Create',
        'flag' => 'product-categories.create',
        'parent_flag' => 'product-categories.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'product-categories.edit',
        'parent_flag' => 'product-categories.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'product-categories.destroy',
        'parent_flag' => 'product-categories.index',
    ],

    [
        'name' => 'Product tags',
        'flag' => 'product-tag.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Create',
        'flag' => 'product-tag.create',
        'parent_flag' => 'product-tag.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'product-tag.edit',
        'parent_flag' => 'product-tag.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'product-tag.destroy',
        'parent_flag' => 'product-tag.index',
    ],

    /**
     * Brands
     */
    [
        'name' => 'Brands',
        'flag' => 'brands.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Create',
        'flag' => 'brands.create',
        'parent_flag' => 'brands.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'brands.edit',
        'parent_flag' => 'brands.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'brands.destroy',
        'parent_flag' => 'brands.index',
    ],
    /**
     * Product collections
     */
    [
        'name' => 'Product collections',
        'flag' => 'product-collections.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Create',
        'flag' => 'product-collections.create',
        'parent_flag' => 'product-collections.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'product-collections.edit',
        'parent_flag' => 'product-collections.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'product-collections.destroy',
        'parent_flag' => 'product-collections.index',
    ],

    /**
     * Product attribute sets
     */
    [
        'name' => 'Product Attributes Sets',
        'flag' => 'product-attribute-sets.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Create',
        'flag' => 'product-attribute-sets.create',
        'parent_flag' => 'product-attribute-sets.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'product-attribute-sets.edit',
        'parent_flag' => 'product-attribute-sets.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'product-attribute-sets.destroy',
        'parent_flag' => 'product-attribute-sets.index',
    ],
    /**
     * Product attributes
     */
    [
        'name' => 'Product Attributes',
        'flag' => 'product-attributes.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Create',
        'flag' => 'product-attributes.create',
        'parent_flag' => 'product-attributes.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'product-attributes.edit',
        'parent_flag' => 'product-attributes.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'product-attributes.destroy',
        'parent_flag' => 'product-attributes.index',
    ],
    [
        'name' => 'Taxes',
        'flag' => 'tax.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Create',
        'flag' => 'tax.create',
        'parent_flag' => 'tax.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'tax.edit',
        'parent_flag' => 'tax.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'tax.destroy',
        'parent_flag' => 'tax.index',
    ],
    [
        'name' => 'Reviews',
        'flag' => 'reviews.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Create',
        'flag' => 'reviews.create',
        'parent_flag' => 'reviews.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'reviews.destroy',
        'parent_flag' => 'reviews.index',
    ],
    [
        'name' => 'Publish/Unpublish Review',
        'flag' => 'reviews.publish',
        'parent_flag' => 'reviews.index',
    ],
    [
        'name' => 'Reply Review',
        'flag' => 'reviews.reply',
        'parent_flag' => 'reviews.index',
    ],

    [
        'name' => 'Shipments',
        'flag' => 'ecommerce.shipments.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Create',
        'flag' => 'ecommerce.shipments.create',
        'parent_flag' => 'ecommerce.shipments.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'ecommerce.shipments.edit',
        'parent_flag' => 'ecommerce.shipments.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'ecommerce.shipments.destroy',
        'parent_flag' => 'ecommerce.shipments.index',
    ],

    [
        'name' => 'Orders',
        'flag' => 'orders.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Create',
        'flag' => 'orders.create',
        'parent_flag' => 'orders.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'orders.edit',
        'parent_flag' => 'orders.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'orders.destroy',
        'parent_flag' => 'orders.index',
    ],
    [
        'name' => 'Discounts',
        'flag' => 'discounts.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Create',
        'flag' => 'discounts.create',
        'parent_flag' => 'discounts.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'discounts.edit',
        'parent_flag' => 'discounts.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'discounts.destroy',
        'parent_flag' => 'discounts.index',
    ],
    [
        'name' => 'Customers',
        'flag' => 'customers.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Create',
        'flag' => 'customers.create',
        'parent_flag' => 'customers.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'customers.edit',
        'parent_flag' => 'customers.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'customers.destroy',
        'parent_flag' => 'customers.index',
    ],

    [
        'name' => 'Flash sales',
        'flag' => 'flash-sale.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Create',
        'flag' => 'flash-sale.create',
        'parent_flag' => 'flash-sale.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'flash-sale.edit',
        'parent_flag' => 'flash-sale.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'flash-sale.destroy',
        'parent_flag' => 'flash-sale.index',
    ],

    [
        'name' => 'Product labels',
        'flag' => 'product-label.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Create',
        'flag' => 'product-label.create',
        'parent_flag' => 'product-label.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'product-label.edit',
        'parent_flag' => 'product-label.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'product-label.destroy',
        'parent_flag' => 'product-label.index',
    ],

    [
        'name' => 'Import Products',
        'flag' => 'ecommerce.import.products.index',
        'parent_flag' => 'tools.data-synchronize',
    ],

    [
        'name' => 'Export Products',
        'flag' => 'ecommerce.export.products.index',
        'parent_flag' => 'tools.data-synchronize',
    ],

    [
        'name' => 'Order Returns',
        'flag' => 'order_returns.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Edit',
        'flag' => 'order_returns.edit',
        'parent_flag' => 'order_returns.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'order_returns.destroy',
        'parent_flag' => 'order_returns.index',
    ],

    /**
     * Global option
     */

    [
        'name' => 'Product Options',
        'flag' => 'global-option.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Create',
        'flag' => 'global-option.create',
        'parent_flag' => 'global-option.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'global-option.edit',
        'parent_flag' => 'global-option.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'global-option.destroy',
        'parent_flag' => 'global-option.index',
    ],

    [
        'name' => 'Invoices',
        'flag' => 'ecommerce.invoice.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Edit',
        'flag' => 'ecommerce.invoice.edit',
        'parent_flag' => 'ecommerce.invoice.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'ecommerce.invoice.destroy',
        'parent_flag' => 'ecommerce.invoice.index',
    ],
    [
        'name' => 'Ecommerce',
        'flag' => 'ecommerce.settings',
        'parent_flag' => 'settings.index',
    ],
    [
        'name' => 'General',
        'flag' => 'ecommerce.settings.general',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Invoice Template',
        'flag' => 'ecommerce.invoice-template.index',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Currencies',
        'flag' => 'ecommerce.settings.currencies',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Product',
        'flag' => 'ecommerce.settings.products',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Product Search',
        'flag' => 'ecommerce.settings.product-search',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Digital Product',
        'flag' => 'ecommerce.settings.digital-products',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Store Locators',
        'flag' => 'ecommerce.settings.store-locators',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Invoice',
        'flag' => 'ecommerce.settings.invoices',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Product Review',
        'flag' => 'ecommerce.settings.product-reviews',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Customer',
        'flag' => 'ecommerce.settings.customers',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Shopping',
        'flag' => 'ecommerce.settings.shopping',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Tax',
        'flag' => 'ecommerce.settings.taxes',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Shipping',
        'flag' => 'ecommerce.settings.shipping',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Tracking',
        'flag' => 'ecommerce.settings.tracking',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Standard and Format',
        'flag' => 'ecommerce.settings.standard-and-format',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Checkout',
        'flag' => 'ecommerce.settings.checkout',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Return',
        'flag' => 'ecommerce.settings.return',
        'parent_flag' => 'ecommerce.settings',
    ],

    [
        'name' => 'Flash Sale',
        'flag' => 'ecommerce.settings.flash-sale',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Product Specification',
        'flag' => 'ecommerce.settings.product-specification',
        'parent_flag' => 'ecommerce.settings',
    ],

    [
        'name' => 'Export Product Categories',
        'flag' => 'product-categories.export',
        'parent_flag' => 'tools.data-synchronize',
    ],
    [
        'name' => 'Import Product Categories',
        'flag' => 'product-categories.import',
        'parent_flag' => 'tools.data-synchronize',
    ],
    [
        'name' => 'Export Orders',
        'flag' => 'orders.export',
        'parent_flag' => 'tools.data-synchronize',
    ],

    [
        'name' => 'Product Specification',
        'flag' => 'ecommerce.product-specification.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Specification Groups',
        'flag' => 'ecommerce.specification-groups.index',
        'parent_flag' => 'ecommerce.product-specification.index',
    ],
    [
        'name' => 'Create',
        'flag' => 'ecommerce.specification-groups.create',
        'parent_flag' => 'ecommerce.specification-groups.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'ecommerce.specification-groups.edit',
        'parent_flag' => 'ecommerce.specification-groups.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'ecommerce.specification-groups.destroy',
        'parent_flag' => 'ecommerce.specification-groups.index',
    ],
    [
        'name' => 'Specification Attributes',
        'flag' => 'ecommerce.specification-attributes.index',
        'parent_flag' => 'ecommerce.product-specification.index',
    ],
    [
        'name' => 'Create',
        'flag' => 'ecommerce.specification-attributes.create',
        'parent_flag' => 'ecommerce.specification-attributes.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'ecommerce.specification-attributes.edit',
        'parent_flag' => 'ecommerce.specification-attributes.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'ecommerce.specification-attributes.destroy',
        'parent_flag' => 'ecommerce.specification-attributes.index',
    ],
    [
        'name' => 'Specification Tables',
        'flag' => 'ecommerce.specification-tables.index',
        'parent_flag' => 'ecommerce.product-specification.index',
    ],
    [
        'name' => 'Create',
        'flag' => 'ecommerce.specification-tables.create',
        'parent_flag' => 'ecommerce.specification-tables.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'ecommerce.specification-tables.edit',
        'parent_flag' => 'ecommerce.specification-tables.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'ecommerce.specification-tables.destroy',
        'parent_flag' => 'ecommerce.specification-tables.index',
    ],
];
