<?php

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

    [
        'name' => 'Settings',
        'flag' => 'ecommerce.settings',
        'parent_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',
    ],
    /**
     * 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' => 'Shipping',
        'flag' => 'shipping_methods.index',
        'parent_flag' => 'plugins.ecommerce',
    ],

    [
        'name' => 'Shipping Rule Items',
        'flag' => 'ecommerce.shipping-rule-items.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'Create',
        'flag' => 'ecommerce.shipping-rule-items.create',
        'parent_flag' => 'ecommerce.shipping-rule-items.index',
    ],
    [
        'name' => 'Edit',
        'flag' => 'ecommerce.shipping-rule-items.edit',
        'parent_flag' => 'ecommerce.shipping-rule-items.index',
    ],
    [
        'name' => 'Delete',
        'flag' => 'ecommerce.shipping-rule-items.destroy',
        'parent_flag' => 'ecommerce.shipping-rule-items.index',
    ],
    [
        'name' => 'Bulk Import',
        'flag' => 'ecommerce.shipping-rule-items.bulk-import',
        'parent_flag' => 'ecommerce.shipping-rule-items.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' => 'plugins.ecommerce',
    ],

    [
        'name' => 'Export Products',
        'flag' => 'ecommerce.export.products.index',
        'parent_flag' => 'plugins.ecommerce',
    ],

    [
        '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' => 'Invoice Template',
        'flag' => 'ecommerce.invoice-template.index',
        'parent_flag' => 'plugins.ecommerce',
    ],
    [
        'name' => 'General Settings',
        'flag' => 'ecommerce.settings.general',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Currency Settings',
        'flag' => 'ecommerce.settings.currencies',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Product Settings',
        'flag' => 'ecommerce.settings.products',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Product Search Settings',
        'flag' => 'ecommerce.settings.product-search',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Digital Product Settings',
        'flag' => 'ecommerce.settings.digital-products',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Store Locators Settings',
        'flag' => 'ecommerce.settings.store-locators',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Invoice Settings',
        'flag' => 'ecommerce.settings.invoices',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Product Review Settings',
        'flag' => 'ecommerce.settings.product-reviews',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Customer Settings',
        'flag' => 'ecommerce.settings.customers',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Shopping Settings',
        'flag' => 'ecommerce.settings.shopping',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Tax Settings',
        'flag' => 'ecommerce.settings.taxes',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Shipping Settings',
        'flag' => 'ecommerce.settings.shipping',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Tracking Settings',
        'flag' => 'ecommerce.settings.tracking',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Standard and Format Settings',
        'flag' => 'ecommerce.settings.standard-and-format',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Checkout Settings',
        'flag' => 'ecommerce.settings.checkout',
        'parent_flag' => 'ecommerce.settings',
    ],
    [
        'name' => 'Return Settings',
        'flag' => 'ecommerce.settings.return',
        'parent_flag' => 'ecommerce.settings',
    ],

    [
        'name' => 'Flash Sale Settings',
        'flag' => 'ecommerce.settings.flash-sale',
        'parent_flag' => 'ecommerce.settings',
    ],
];
