<?php


use App\DataTables\Warehouses\WarehouseDataTable;
use App\Models\LocalizationManagement\City;
use App\Models\ProductManagement\Product;
use App\Models\StockManagement\Adjustment;
use App\Models\StockManagement\StockRequest;
use App\Models\StockManagement\Importation;
use App\Models\StockManagement\Output;
use App\Models\SettingManagement\Status;
use App\Models\SettingManagement\StatusChange;
use App\Models\StockManagement\Stock;
use App\Models\StockManagement\StockRequestItem;
use App\Models\StockManagement\Warehouse;
use App\Models\StockManagement\WarehouseHasCity;
use App\Models\StockManagement\WarehouseHasManager;
use App\Models\StockManagement\WareHouseType;
use App\Models\UserManagement\Admin;

return [

    "tables" => [
        "warehouse"                        => Warehouse::class,
        "warehouse-has-manager"            => WarehouseHasManager::class,
        "warehouse-has-city"               => WarehouseHasCity::class,
        "stock"                            => Stock::class,
        "stock-request"                     => StockRequest::class,
        "stock-adjustment"                 => Adjustment::class,
        "stock-importation"                => Importation::class,
        "stock-output"                     => Output::class,
        "status"                           => Status::class,
        "status-change"                    => StatusChange::class,
        "city"                             => City::class,
        "user"                             => Admin::class,
        "product"                          => Product::class,
    ],
    "front-end" => [
        "stock" => Stock::class,
    ],

    "model-statuses" => [
        [
            "model" => StockRequest::class,
            "statuses"  => [

            ],
        ],
    ],

    "morph-map" => [
        "warehouse" => Warehouse::class,
        "stock" => Stock::class,
        "stock-request" => StockRequest::class,
        "stock-request-item" => StockRequestItem::class,
        "stock-adjustment" => Adjustment::class,
        "stock-importation" => Importation::class,
        "stock-output" => Output::class,
        "status" => Status::class,
        "status-change" => StatusChange::class,
    ],

    "tabs" => [
        "stock" => [
            [
                "title" => 'Store',
                "icon" => 'fas fa-warehouse',
                "id" => 'tab-1',
                "tab-index" => 1,
                "warehouse-type" => WareHouseType::STORE,
                "href" => 'tab-content-1',
                "content" => [
                    "file" => "backend.stocks.management.tabs.index",
                    "tabs" => [
                         [
                            "title" => "Lots",
                             "id" => 'tab-1-1',
                             "href" => 'tab-content-1-1',
                            "icon" => "",
                             "styles" => "margin-left: 15px;",
                            "tab-index" => 11,
                            "permissions" => ["st-stock-create","st-stock-list","st-stock-update"],
                            "content" => [
                                "id" => "tab-content-1-1",
                                "file" => "backend.stocks.management.tabs.lots.index",
                            ],
                            "tabs" => [
                                [
                                    "id" => 'tab-1-1-1',
                                    "icon" => '',
                                    "tab-index" => 111,
                                    "desc" => "",
                                    "href" => 'tab-content-1-1-1',
                                    "title" => "Availables",
                                    "permissions" =>  ["st-stock-create","st-stock-list","st-stock-update"],
                                    "content" => [
                                        "file" => "backend.stocks.management.tabs.lots.tab-avaibles-and-all-lots",
                                        "table" => [
                                            "id" => "table-1-1-1",
                                            "route" => "admin.stocks.list-on-warehouse.list",
                                        ],
                                    ],
                                ],

                                [
                                    "id" => 'tab-1-1-2',
                                    "icon" => '',
                                    "tab-index" => 112,
                                    "desc" => "",
                                    "href" => 'tab-content-1-1-2',
                                    "title" => "All",
                                    "permissions" =>  ["st-stock-create","st-stock-list","st-stock-update"],
                                    "content" => [
                                        "file" => "backend.stocks.management.tabs.lots.tab-avaibles-and-all-lots",
                                        "table" => [
                                            "id" => "table-1-1-2",
                                            "route" => "admin.stocks.list-on-warehouse.list",
                                        ],
                                    ],
                                ],
                            ],
                        ],
                        [
                            "title" => "Products",
                            "id" => 'tab-1-2',
                            "href" => 'tab-content-1-2',
                            "icon" => "",
                            "tab-index" => 12,
                            "permissions" => ["st-stock-list"],
                            "content" => [
                                "id" => "tab-content-1-2",
                                "file" => "backend.stocks.management.tabs.products.index",
                            ],
                            "table" => [
                                "id" => "table-1-2",
                                "route" => "admin.stocks.list-on-warehouse.group-by-product",
                            ],
                        ],
                        [
                            "title" => "Importations",
                            "icon" => "",
                            "id" => 'tab-1-3',
                            "href" => 'tab-content-1-3',
                            "tab-index" => 13,
                            "permissions" => ["st-importations-list",],
                            "content" => [
                                "id" => "tab-content-1-3",
                                "file" => "backend.stocks.management.tabs.importations.index",
                            ],
                            "table" => [
                                "id" => "table-1-3",
                                "route" => "admin.stocks.importations.list-on-warehouse",
                            ],
                        ],
                        [
                            "title" => "Adjustments",
                             "id" => 'tab-1-4',
                             "href" => 'tab-content-1-4',
                             "icon" => "",
                            "tab-index" => 14,
                            "permissions" => ["st-adjustment-list"],
                            "content" => [
                                "id" => "tab-content-1-4",
                                "file" => "backend.stocks.management.tabs.adjustments.index",
                            ],
                            "table" => [
                                "id" => "table-1-4",
                                "route" => "admin.stocks.adjustments.dt-list",
                            ],
                        ],
                        [
                            "title" => "Demands",
                            "icon" => "",
                            "id" => 'tab-1-5',
                            "visible" => false,
                            "href" => 'tab-content-5',
                            "tab-index" => 15,
                            "permissions" => [
//                                "st-request-put-in-transit","st-request-put-rejected",
//                                'st-request-advanced-create','st-request-advanced-edit',
//                                'st-request-advanced-treat'
                            ],
                            "content" => [
                                "id" => "tab-content-1-5",
                                "file" => "backend.stocks.management.tabs.demands.index",
                            ],
                            "table" => [
                                "id" => "table-1-5",
                            ],
                            "tabs" => [
                                [
                                    "id" => 'tab-1-5-1',
                                    "icon" => '',
                                    "tab-index" => 151,
                                    "desc" => "",
                                    "href" => 'tab-content-1-5-1',
                                    "title" => "Point Of Sale",
                                    "styles" => "margin-left: 15px;",
                                    "permissions" =>  [
//                                        "st-request-put-in-transit","st-request-put-rejected"
                                    ],
                                    "content" => [
                                        "file" => "backend.stocks.management.tabs.demands.tabs.index",
                                        "table" => [
                                            "id" => "table-1-5-1",
                                        ],
                                    ],

                                    "tabs" => [
                                        [
                                            "id" => 'tab-1-5-1-1',
                                            "icon" => '',
                                            "tab-index" => 1511,
                                            "desc" => "",
                                            "href" => 'tab-content-1-5-1-1',
                                            "title" => "Reçues",
                                            "warehouse-type" => WareHouseType::STORE,
                                            "permissions" =>  [
//                                                "st-request-put-in-transit","st-request-put-rejected"
                                            ],
                                            "content" => [
                                                "permissions" =>  [
//                                                    "st-request-put-in-transit","st-request-put-rejected"
                                                ],
                                                "file" => "backend.stocks.management.tabs.demands.tabs.tab-receives",
                                                "table" => [
                                                    "id" => "table-1-5-1-1",
                                                    "has-checkbox" => true,
                                                ],
                                            ],
                                        ],
                                        [
                                            "id" => 'tab-1-5-1-2',
                                            "icon" => '',
                                            "tab-index" => 1512,
                                            "desc" => "",
                                            "href" => 'tab-content-1-5-1-2',
                                            "title" => "Envoyées",
                                            "warehouse-type" => WareHouseType::class,
                                            "permissions" =>  [
//                                                "st-request-advanced-treat","st-request-advanced-create"
                                            ],
                                            "content" => [
                                                "file" => "backend.stocks.management.tabs.demands.tabs.tab-sends",
                                                "table" => [
                                                    "id" => "table-1-5-1-2" ,
                                                ],
                                            ],
                                        ],
                                    ],
                                ],

                                [
                                    "id" => 'tab-1-5-2',
                                    "icon" => '',
                                    "tab-index" => 152,
                                    "href" => 'tab-content-1-5-2',
                                    "styles" => "margin-left: 15px;",
                                    "title" => "Store",
                                    "permissions" =>  [
//                                        "st-request-advanced-treat","st-request-advanced-create"
                                    ],
                                    "content" => [
                                        "file" => "backend.stocks.management.tabs.demands.tabs.index",
                                        "table" => [
                                            "id" => "table-1-5-2",
                                        ],
                                    ],
                                    "tabs" => [
                                        [
                                            "id" => 'tab-1-5-2-1',
                                            "icon" => '',
                                            "tab-index" => 1521,
                                            "desc" => "",
                                            "href" => 'tab-content-1-5-2-1',
                                            "title" => "Reçues",
                                            "warehouse-type" => null,
                                            "permissions" =>  [
//                                                "st-request-put-in-transit","st-request-put-rejected"
                                            ],
                                            "content" => [
                                                "file" => "backend.stocks.management.tabs.demands.tabs.tab-receives",
                                                "table" => [
                                                    "id" => "table-1-5-2-1",
                                                    "has-checkbox" => true,
                                                ],
                                            ],
                                        ],
                                        [
                                            "id" => 'tab-1-5-2-2',
                                            "icon" => '',
                                            "tab-index" => 1522,
                                            "desc" => "",
                                            "href" => 'tab-content-1-5-2-2',
                                            "title" => "Envoyées",
                                            "warehouse-type" => WareHouseType::class,
                                            "permissions" =>  [
//                                                "st-request-put-in-transit","st-request-put-rejected"
                                            ],
                                            "content" => [
                                                "permissions" =>  [
//                                                    "st-request-put-in-transit","st-request-put-rejected"
                                                ],
                                                "file" => "backend.stocks.management.tabs.demands.tabs.tab-sends",
                                                "table" => [
                                                    "id" => "table-1-5-2-2",
                                                ],
                                            ],
                                        ],
                                    ],
                                ],
                            ],
                        ],

                         [
                            "title" => "Transits",
                            "icon" => "",
                             "id" => 'tab-1-6',
                             "visible" => false,
                             "href" => 'tab-content-1-6',
                            "tab-index" => 16,
                            "desc" => "",
                            "permissions" => [
//                                'st-request-list',"st-request-advanced-treat","st-request-advanced-create"
                            ],
                            "content" => [
                                "id" => "tab-content-1-6",
                                "file" => "backend.stocks.management.tabs.transits.index",
                            ],
                            "table" => [
                                "id" => "table-1-6",
                            ],

                            "tabs" => [
                                [
                                    "id" => 'tab-1-6-1',
                                    "icon" => '',
                                    "tab-index" => 161,
                                    "desc" => "",
                                    "href" => 'tab-content-1-6-1',
                                    "title" => "Point Of Sale",
                                    "styles" => "margin-left: 15px;",
                                    "permissions" =>  ["st-request-list"],
                                    "content" => [
                                        "file" => "backend.stocks.management.tabs.transits.tabs.index",
                                        "table" => [
                                            "id" => "table-1-6-1",
                                            "filter" => "table-1-6-1",
                                        ],
                                    ],

                                    "tabs" => [
                                        [
                                            "id" => 'tab-1-6-1-1',
                                            "icon" => '',
                                            "tab-index" => 1611,
                                            "desc" => "",
                                            "href" => 'tab-content-1-6-1-1',
                                            "title" => "Envoyées",
                                            "warehouse-type" => null,
                                            "permissions" =>  [
                                                //"st-request-put-in-transit","st-request-put-rejected"
                                            ],                                        "content" => [
                                            "file" => "backend.stocks.management.tabs.transits.tabs.tab-sends",
                                            "table" => [
                                                "id" => "table-1-6-1-1",
                                            ],
                                        ],
                                        ],
                                        [
                                            "id" => 'tab-1-6-1-2',
                                            "icon" => '',
                                            "tab-index" => 1612,
                                            "desc" => "",
                                            "href" => 'tab-content-1-6-1-2',
                                            "title" => "Reçues",
                                            "warehouse-type" => null,
                                            "permissions" =>  [
                                               // "st-request-advanced-treat","st-request-advanced-create"
                                            ],
                                            "content" => [
                                                "file" => "backend.stocks.management.tabs.transits.tabs.tab-receives",
                                                "table" => [
                                                    "id" => "table-1-6-1-2",
                                                    "has-checkbox" => true,
                                                ],
                                            ],
                                        ],
                                    ],
                                ],

                                [
                                    "id" => 'tab-1-6-2',
                                    "icon" => '',
                                    "tab-index" => 162,
                                    "href" => 'tab-content-1-6-2',
                                    "title" => "Store",
                                    "styles" => "margin-left: 15px;",
                                    "permissions" =>  [
                                       // "st-request-advanced-treat","st-request-advanced-create"
                                    ],
                                    "content" => [
                                        "file" => "backend.stocks.management.tabs.transits.tabs.index",
                                        "table" => [
                                            "id" => "table-1-6-2",
                                        ],
                                    ],
                                    "tabs" => [
                                        [
                                            "id" => 'tab-1-6-2-1',
                                            "icon" => '',
                                            "tab-index" => 1621,
                                            "desc" => "",
                                            "href" => 'tab-content-1-6-2-1',
                                            "title" => "Envoyées",
                                            "warehouse-type" => WareHouseType::STORE,
                                            "permissions" =>  [
                                                //"st-request-put-in-transit","st-request-put-rejected"
                                            ],
                                            "content" => [
                                                "permissions" =>  [
                                                    //"st-request-put-in-transit","st-request-put-rejected"
                                                ],
                                                "file" => "backend.stocks.management.tabs.transits.tabs.tab-sends",
                                                "table" => [
                                                    "id" => "table-1-6-2-1",
                                                ],
                                            ],
                                        ],
                                        [
                                            "id" => 'tab-1-6-2-2',
                                            "icon" => '',
                                            "tab-index" => 1622,
                                            "desc" => "",
                                            "href" => 'tab-content-1-6-2-2',
                                            "title" => "Reçues",
                                            "warehouse-type" => WareHouseType::STORE,
                                            "permissions" =>  [
                                                //"st-request-put-in-transit","st-request-put-rejected"
                                            ],
                                            "content" => [
                                                "permissions" =>  [
                                                   // "st-request-put-in-transit","st-request-put-rejected"
                                                ],
                                                "file" => "backend.stocks.management.tabs.transits.tabs.tab-receives",
                                                "table" => [
                                                    "id" => "table-1-6-2-2",
                                                    "has-checkbox" => true,
                                                ],
                                            ],
                                        ],
                                    ],
                                ],
                            ],

                        ],
                    ]
                ],
            ],
            [
                "title" => 'Point Of Sale',
                "icon" => 'fas fa-people-carry',
                "id" => 'tab-2',
                "tab-index" => 2,
                "warehouse-type" => WareHouseType::POINT_OF_SALE,
                "href" => 'tab-content-2',
                "base_route_name" => 'admin',
                "content" => [
                    "file" => "backend.stocks.management.tabs.index",
                    "tabs" => [
                        [
                            "title" => "Lots",
                            "id" => 'tab-2-1',
                            "href" => 'tab-content-2-1',
                            "icon" => "",
                            "styles" => "margin-left: 15px;",
                            "tab-index" => 21,
                            "permissions" => ["st-stock-create","st-stock-list","st-stock-update"],
                            "content" => [
                                "id" => "tab-content-2-1",
                                "file" => "backend.stocks.management.tabs.lots.index",
                            ],
                            "tabs" => [
                                [
                                    "id" => 'tab-2-1-1',
                                    "icon" => '',
                                    "tab-index" => 211,
                                    "desc" => "",
                                    "href" => 'tab-content-2-1-1',
                                    "title" => "Availables",
                                    "permissions" =>  ["st-stock-create","st-stock-list","st-stock-update"],
                                    "content" => [
                                        "file" => "backend.stocks.management.tabs.lots.tab-avaibles-and-all-lots",
                                        "table" => [
                                            "id" => "table-2-1-1",
                                            "route" => "admin.stocks.list-on-warehouse.list",
                                        ],
                                    ],
                                ],

                                [
                                    "id" => 'tab-2-1-2',
                                    "icon" => '',
                                    "tab-index" => 212,
                                    "desc" => "",
                                    "href" => 'tab-content-2-1-2',
                                    "title" => "All",
                                    "permissions" =>  ["st-stock-create","st-stock-list","st-stock-update"],
                                    "content" => [
                                        "file" => "backend.stocks.management.tabs.lots.tab-avaibles-and-all-lots",
                                        "table" => [
                                            "id" => "table-2-1-2",
                                            "route" => "admin.stocks.list-on-warehouse.list",
                                        ],
                                    ],
                                ],
                            ],
                        ],
                        [
                            "title" => "Products",
                            "id" => 'tab-2-2',
                            "href" => 'tab-content-2-2',
                            "icon" => "",
                            "tab-index" => 22,
                            "permissions" => ["st-stock-list"],
                            "content" => [
                                "id" => "tab-content-2-2",
                                "file" => "backend.stocks.management.tabs.products.index",
                            ],
                            "table" => [
                                "id" => "table-2-2",
                                "route" => "admin.stocks.list-on-warehouse.group-by-product",
                            ],
                        ],
                        [
                            "title" => "Importations",
                            "icon" => "",
                            "id" => 'tab-2-3',
                            "href" => 'tab-content-2-3',
                            "tab-index" => 23,
                            "permissions" => ["st-importations","st-stock-approve-import","st-stock-reject-import"],
                            "content" => [
                                "id" => "tab-content-2-3",
                                "file" => "backend.stocks.management.tabs.importations.index",
                            ],
                            "table" => [
                                "id" => "table-2-3",
                                "route" => "admin.stocks.importations.list-on-warehouse",
                            ],
                        ],
                        [
                            "title" => "Adjustments",
                            "id" => 'tab-2-4',
                            "href" => 'tab-content-2-4',
                            "icon" => "",
                            "tab-index" => 24,
                            "permissions" => ["st-adjustment-list"],
                            "content" => [
                                "id" => "tab-content-2-4",
                                "file" => "backend.stocks.management.tabs.adjustments.index",
                            ],
                            "table" => [
                                "id" => "table-2-4",
                                "route" => "admin.stocks.adjustments.dt-list",
                            ],
                        ],
                        [
                            "title" => "Demands",
                            "icon" => "",
                            "id" => 'tab-2-5',
                            "visible" => false,
                            "href" => 'tab-content-2-5',
                            "tab-index" => 25,
                            "permissions" => [
//                                "st-request-put-in-transit","st-request-put-rejected",
//                                'st-request-advanced-create','st-request-advanced-edit','st-request-advanced-treat'
                            ],
                            "content" => [
                                "id" => "tab-content-2-5",
                                "file" => "backend.stocks.management.tabs.demands.index",
                            ],
                            "table" => [
                                "id" => "table-2-5",
                            ],
                            "tabs" => [
                                [
                                    "id" => 'tab-2-5-1',
                                    "icon" => '',
                                    "tab-index" => 251,
                                    "desc" => "",
                                    "href" => 'tab-content-2-5-1',
                                    "title" => "Point Of Sale",
                                    "styles" => "margin-left: 15px;",
                                    "permissions" =>  [
//                                        "st-request-put-in-transit","st-request-put-rejected"
                                    ],
                                    "content" => [
                                        "file" => "backend.stocks.management.tabs.demands.tabs.index",
                                        "table" => [
                                            "id" => "table-2-5-1",
                                        ],
                                    ],

                                    "tabs" => [
                                        [
                                            "id" => 'tab-2-5-1-1',
                                            "icon" => '',
                                            "tab-index" => 2511,
                                            "desc" => "",
                                            "href" => 'tab-content-2-5-1-1',
                                            "title" => "Reçues",
                                            "warehouse-type" => WareHouseType::STORE,
                                            "permissions" =>  [
//                                                "st-request-put-in-transit","st-request-put-rejected"
                                            ],
                                            "content" => [
                                                "permissions" =>  [
//                                                    "st-request-put-in-transit","st-request-put-rejected"
                                                ],
                                                "file" => "backend.stocks.management.tabs.demands.tabs.tab-receives",
                                                "table" => [
                                                    "id" => "table-2-5-1-1",
                                                    "has-checkbox" => true,
                                                ],
                                            ],
                                        ],
                                        [
                                            "id" => 'tab-2-5-1-2',
                                            "icon" => '',
                                            "tab-index" => 2512,
                                            "desc" => "",
                                            "href" => 'tab-content-2-5-1-2',
                                            "title" => "Envoyées",
                                            "warehouse-type" => WareHouseType::class,
                                            "permissions" =>  [
//                                                "st-request-advanced-treat","st-request-advanced-create"
                                            ],
                                            "content" => [
                                                "file" => "backend.stocks.management.tabs.demands.tabs.tab-sends",
                                                "table" => [
                                                    "id" => "table-2-5-1-2" ,
                                                ],
                                            ],
                                        ],
                                    ],
                                ],

                                [
                                    "id" => 'tab-2-5-2',
                                    "icon" => '',
                                    "tab-index" => 252,
                                    "href" => 'tab-content-2-5-2',
                                    "styles" => "margin-left: 15px;",
                                    "title" => "Store",
                                    "permissions" =>  [
//                                        "st-request-advanced-treat","st-request-advanced-create"
                                    ],
                                    "content" => [
                                        "file" => "backend.stocks.management.tabs.demands.tabs.index",
                                        "table" => [
                                            "id" => "table-2-5-2",
                                        ],
                                    ],
                                    "tabs" => [
                                        [
                                            "id" => 'tab-2-5-2-1',
                                            "icon" => '',
                                            "tab-index" => 2521,
                                            "desc" => "",
                                            "href" => 'tab-content-2-5-2-1',
                                            "title" => "Reçues",
                                            "warehouse-type" => null,
                                            "permissions" =>  [
//                                                "st-request-put-in-transit","st-request-put-rejected"
                                            ],
                                            "content" => [
                                                "file" => "backend.stocks.management.tabs.demands.tabs.tab-receives",
                                                "table" => [
                                                    "id" => "table-2-5-2-1",
                                                    "has-checkbox" => true,
                                                ],
                                            ],
                                        ],
                                        [
                                            "id" => 'tab-2-5-2-2',
                                            "icon" => '',
                                            "tab-index" => 2522,
                                            "desc" => "",
                                            "href" => 'tab-content-2-5-2-2',
                                            "title" => "Envoyées",
                                            "warehouse-type" => WareHouseType::class,
                                            "permissions" =>  [
//                                                "st-request-put-in-transit","st-request-put-rejected"
                                            ],
                                            "content" => [
                                                "permissions" =>  [
//                                                    "st-request-put-in-transit","st-request-put-rejected"
                                                ],
                                                "file" => "backend.stocks.management.tabs.demands.tabs.tab-sends",
                                                "table" => [
                                                    "id" => "table-2-5-2-2",
                                                ],
                                            ],
                                        ],
                                    ],
                                ],
                            ],
                        ],

                        [
                            "title" => "Transits",
                            "icon" => "",
                            "id" => 'tab-2-6',
                            "visible" => false,
                            "href" => 'tab-content-2-6',
                            "tab-index" => 26,
                            "desc" => "",
                            "permissions" => [
//                                'st-request-list',"st-request-advanced-treat","st-request-advanced-create"
                            ],
                            "content" => [
                                "id" => "tab-content-2-6",
                                "file" => "backend.stocks.management.tabs.transits.index",
                            ],
                            "table" => [
                                "id" => "table-2-6",
                            ],

                            "tabs" => [
                                [
                                    "id" => 'tab-2-6-1',
                                    "icon" => '',
                                    "tab-index" => 261,
                                    "desc" => "",
                                    "href" => 'tab-content-2-6-1',
                                    "title" => "Point Of Sale",
                                    "styles" => "margin-left: 15px;",
                                    "permissions" =>  [
//                                        "st-request-list"
                                    ],
                                    "content" => [
                                        "file" => "backend.stocks.management.tabs.transits.tabs.index",
                                        "table" => [
                                            "id" => "table-2-6-1",
                                            "filter" => "table-2-6-1",
                                        ],
                                    ],

                                    "tabs" => [
                                        [
                                            "id" => 'tab-2-6-1-1',
                                            "icon" => '',
                                            "tab-index" => 2611,
                                            "desc" => "",
                                            "href" => 'tab-content-2-6-1-1',
                                            "title" => "Envoyées",
                                            "warehouse-type" => null,
                                            "permissions" =>  [
//                                                "st-request-put-in-transit","st-request-put-rejected"
                                            ],                                        "content" => [
                                            "file" => "backend.stocks.management.tabs.transits.tabs.tab-sends",
                                            "table" => [
                                                "id" => "table-2-6-1-1",
                                            ],
                                        ],
                                        ],
                                        [
                                            "id" => 'tab-2-6-1-2',
                                            "icon" => '',
                                            "tab-index" => 2612,
                                            "desc" => "",
                                            "href" => 'tab-content-2-6-1-2',
                                            "title" => "Reçues",
                                            "warehouse-type" => null,
                                            "permissions" =>  [
//                                                "st-request-advanced-treat","st-request-advanced-create"
                                            ],
                                            "content" => [
                                                "file" => "backend.stocks.management.tabs.transits.tabs.tab-receives",
                                                "table" => [
                                                    "id" => "table-2-6-1-2",
                                                    "has-checkbox" => true,
                                                ],
                                            ],
                                        ],
                                    ],
                                ],

                                [
                                    "id" => 'tab-2-6-2',
                                    "icon" => '',
                                    "tab-index" => 262,
                                    "href" => 'tab-content-2-6-2',
                                    "title" => "Store",
                                    "styles" => "margin-left: 15px;",
                                    "permissions" =>  [
//                                        "st-request-advanced-treat","st-request-advanced-create"
                                    ],
                                    "content" => [
                                        "file" => "backend.stocks.management.tabs.transits.tabs.index",
                                        "table" => [
                                            "id" => "table-2-6-2",
                                        ],
                                    ],
                                    "tabs" => [
                                        [
                                            "id" => 'tab-2-6-2-1',
                                            "icon" => '',
                                            "tab-index" => 2621,
                                            "desc" => "",
                                            "href" => 'tab-content-2-6-2-1',
                                            "title" => "Envoyées",
                                            "warehouse-type" => WareHouseType::STORE,
                                            "permissions" =>  [
//                                                "st-request-put-in-transit","st-request-put-rejected"
                                            ],
                                            "content" => [
                                                "permissions" =>  [
//                                                    "st-request-put-in-transit","st-request-put-rejected"
                                                ],
                                                "file" => "backend.stocks.management.tabs.transits.tabs.tab-sends",
                                                "table" => [
                                                    "id" => "table-2-6-2-1",
                                                ],
                                            ],
                                        ],
                                        [
                                            "id" => 'tab-2-6-2-2',
                                            "icon" => '',
                                            "tab-index" => 2622,
                                            "desc" => "",
                                            "href" => 'tab-content-2-6-2-2',
                                            "title" => "Reçues",
                                            "warehouse-type" => WareHouseType::STORE,
                                            "permissions" =>  [
//                                                "st-request-put-in-transit","st-request-put-rejected"
                                            ],
                                            "content" => [
                                                "permissions" =>  [
//                                                    "st-request-put-in-transit","st-request-put-rejected"
                                                ],
                                                "file" => "backend.stocks.management.tabs.transits.tabs.tab-receives",
                                                "table" => [
                                                    "id" => "table-2-6-2-2",
                                                    "has-checkbox" => true,
                                                ],
                                            ],
                                        ],
                                    ],
                                ],
                            ],

                        ],
                    ]
                ]
            ]
        ],

        "warehouse" => [
             [
                 "title" => "Stores",
                 "icon" => 'fas fa-warehouse',
                 "href" => 'tab-content-1',
                 "id" => 'tab-1',
                 "warehouse-type" => WareHouseType::STORE,
                 "styles" => "margin-left: 15px;",
                 "tab-index" => 1,
                 "permissions" =>  ["st-warehouse-create","st-warehouse-update","st-warehouse-delete","st-warehouse-show","st-warehouse-list"],
                 "content" => [
                    "file" => "backend.stocks.warehouses.tabs.store",
                   // "dataTable" => WarehouseDataTable::class,
                    "table" => [
                        "id" => "table_1",
                    ],
                ],
            ],

             [
                "title" => "Point Of Sales",
                "icon" => 'fas fa-people-carry',
                "href" => 'tab-content-2',
                "id" => 'tab-2',
                "warehouse-type" => WareHouseType::POINT_OF_SALE,
                "styles" => "margin-left: 15px;",
                "tab-index" => 2,
                "permissions" =>  ["st-warehouse-create","st-warehouse-update","st-warehouse-delete","st-warehouse-show","st-warehouse-list"],
                "content" => [
                    "file" => "backend.stocks.warehouses.tabs.pv",
                   // "dataTable" => WarehouseDataTable::class,
                    "table" => [
                        "id" => "table_2",
                    ],
                ],
            ],
        ],
    ],

    "permissions" => [
        //Stock
        ["name" => "st-stock-create", "description" => "Peut créer un stock dans un entrepôt" , "guard_name" => "admin"],
        ["name" => "st-stock-update", "description" => "Peut modifier un stock dans un entrepôt" , "guard_name" => "admin"],
        ["name" => "st-stock-delete", "description" => "Peut supprimer un stock dans un entrepôt" , "guard_name" => "admin"],
        ["name" => "st-stock-show", "description" => "Peut afficher un stock dans un entrepôt" , "guard_name" => "admin"],
        ["name" => "st-stock-list", "description" => "Peut afficher la liste des stock dans un entrepôt" , "guard_name" => "admin"],

        //Demands
        ["name" => "st-request-create", "description" => "Peut créer une demande de stock dans un entrepôt" , "guard_name" => "admin"],
        ["name" => "st-request-update", "description" => "Peut modifier une demande de stock dans un entrepôt" , "guard_name" => "admin"],
        ["name" => "st-request-delete", "description" => "Peut supprimer une demande de stock dans un entrepôt" , "guard_name" => "admin"],
        ["name" => "st-request-show", "description" => "Peut afficher une demande de stock dans un entrepôt" , "guard_name" => "admin"],
        ["name" => "st-request-list", "description" => "Peut afficher la liste des demandes de stock dans un entrepôt" , "guard_name" => "admin"],
        ["name" => "st-request-set-status", "description" => "Peut changer le statut d'une demande de stock dans un entrepôt" , "guard_name" => "admin"],

        //Warehouses
        ["name" => "st-warehouse-create", "description" => "Peut créer un entrepôt" , "guard_name" => "admin"],
        ["name" => "st-warehouse-update", "description" => "Peut modifier un entrepôt" , "guard_name" => "admin"],
        ["name" => "st-warehouse-delete", "description" => "Peut supprimer un entrepôt" , "guard_name" => "admin"],
        ["name" => "st-warehouse-show", "description" => "Peut afficher un entrepôt" , "guard_name" => "admin"],
        ["name" => "st-warehouse-list", "description" => "Peut afficher la liste des entrepôts" , "guard_name" => "admin"],

        //Importations
        ["name" => "st-importations-create", "description" => "Peut importer une fiche de stock dans un entrepôt" , "guard_name" => "admin"],
        ["name" => "st-importations-update", "description" => "Peut modifier une importation" , "guard_name" => "admin"],
        ["name" => "st-importations-delete", "description" => "Peut supprimer une importation" , "guard_name" => "admin"],
        ["name" => "st-importations-show", "description" => "Peut afficher une importation" , "guard_name" => "admin"],
        ["name" => "st-importations-list", "description" => "Peut afficher une fiche de stock en des entrepôts" , "guard_name" => "admin"],

        //Adjustments
        ["name" => "st-adjustment-create", "description" => "Peut créer un ajustement sur un stock" , "guard_name" => "admin"],
        ["name" => "st-adjustment-show", "description" => "Peut afficher un ajustement" , "guard_name" => "admin"],
        ["name" => "st-adjustment-list", "description" => "Peut afficher la liste des ajustements dans un entrepôt" , "guard_name" => "admin"],
    ],

];
