<?php
/*
 * Copyright (c) 2025 AltumCode (https://altumcode.com/)
 *
 * This software is licensed exclusively by AltumCode and is sold only via https://altumcode.com/.
 * Unauthorized distribution, modification, or use of this software without a valid license is not permitted and may be subject to applicable legal actions.
 *
 * 🌍 View all other existing AltumCode projects via https://altumcode.com/
 * 📧 Get in touch for support or general queries via https://altumcode.com/contact
 * 📤 Download the latest version via https://altumcode.com/downloads
 *
 * 🐦 X/Twitter: https://x.com/AltumCode
 * 📘 Facebook: https://facebook.com/altumcode
 * 📸 Instagram: https://instagram.com/altumcode
 */

defined('ALTUMCODE') || die();

$access = [
    'read' => [
        'read.all' => l('global.all')
    ],

    'create' => [
        'create.stores' => l('stores.title'),
        'create.menus' => l('menus.title'),
        'create.categories' => l('categories.title'),
        'create.items' => l('items.title'),
    ],

    'update' => [
        'update.stores' => l('stores.title'),
        'update.menus' => l('menus.title'),
        'update.categories' => l('categories.title'),
        'update.items' => l('items.title'),
        'update.orders' => l('orders.breadcrumb'),
    ],

    'delete' => [
        'delete.stores' => l('stores.title'),
        'delete.menus' => l('menus.title'),
        'delete.categories' => l('categories.title'),
        'delete.items' => l('items.title'),
        'delete.orders' => l('orders.breadcrumb'),
    ],
];

if(settings()->transfers->domains_is_enabled) {
    $access['create']['create.domains'] = l('domains.title');
    $access['update']['update.domains'] = l('domains.title');
    $access['delete']['delete.domains'] = l('domains.title');
}

return $access;
