<?php

$menus = [
    'index' => [
        'menuname' => 'Vezérlőpult',
        'menuurl' => 'index',
        'accesslevel' => 2,
        'icon' => 'fa-tachometer-alt',
        'template' => 'dashboard'
    ],
    'partners' => [
        'menuname' => 'Partnerek',
        'menuurl' => 'partners',
        'accesslevel' => 2,
        'icon' => 'fa-handshake',
        'template' => 'dashboard',
        'submenu' => [
            'newpartner' => [
                'menuname' => 'Új partner',
                'menuurl' => 'newpartner',
                'accesslevel' => 3,
                'icon' => 'fa-user-plus',
                'template' => 'partners/new'
            ], 'newcity' => [
                'menuname' => 'Új város',
                'menuurl' => 'newcity',
                'accesslevel' => 3,
                'icon' => 'fa-city',
                'template' => 'partners/newcity'
            ], 'newcounty' => [
                'menuname' => 'Új megye',
                'menuurl' => 'newcounty',
                'accesslevel' => 3,
                'icon' => 'fa-flag',
                'template' => 'partners/newcounty'
            ], 'newcountry' => [
                'menuname' => 'Új ország',
                'menuurl' => 'newcountry',
                'accesslevel' => 3,
                'icon' => 'fa-globe-europe',
                'template' => 'partners/newcountry'
            ],
            'partner' => [
                'menuname' => 'Partnerek',
                'menuurl' => 'partner',
                'accesslevel' => 3,
                'icon' => 'fa-list',
                'template' => 'partners/partner',
                'submenu' => [
                    'view' => [
                        'menuname' => 'Partner megtekintése',
                        'menuurl' => 'view',
                        'accesslevel' => 3,
                        'icon' => 'fa-cog',
                        'template' => 'view'
                    ],
                    'edit' => [
                        'menuname' => 'Partner megtekintése',
                        'menuurl' => 'edit',
                        'accesslevel' => 3,
                        'icon' => 'fa-cog',
                        'template' => 'edit'
                    ]
                ]
            ]
        ]
    ],
    'commissions' => [
        'menuname' => 'Jutalék',
        'menuurl' => 'commissions',
        'accesslevel' => 2,
        'icon' => 'fa-funnel-dollar',
        'template' => 'dashboard',
        'submenu' => [
            'commission' => [
                'menuname' => 'Saját jutalék',
                'menuurl' => 'commission',
                'accesslevel' => 2,
                'icon' => 'fa-list',
                'template' => 'commissions/commission'
            ], 'commissionadmin' => [
                'menuname' => 'Saját jutalék',
                'menuurl' => 'commissionadmin',
                'accesslevel' => 0,
                'icon' => 'fa-list',
                'template' => 'commissions/commissionadmin'
            ]
        ]
    ],
    'products' => [
        'menuname' => 'Termékek',
        'menuurl' => 'products',
        'accesslevel' => 2,
        'icon' => 'fa-seedling',
        'template' => 'dashboard',
        'submenu' => [
            'newproduct' => [
                'menuname' => 'Új termék',
                'menuurl' => 'newproduct',
                'accesslevel' => 0,
                'icon' => 'fa-plus',
                'template' => 'products/new'
            ],
            'product' => [
                'menuname' => 'Termékek',
                'menuurl' => 'product',
                'accesslevel' => 2,
                'icon' => 'fa-list',
                'template' => 'products/product',
                'submenu' => [
                    'viewproduct' => [
                        'menuname' => 'Termék megtekintése',
                        'menuurl' => 'viewproduct',
                        'accesslevel' => 2,
                        'icon' => 'fa-cog',
                        'template' => 'view'
                    ],
                    'editproduct' => [
                        'menuname' => 'Termék szerkesztése',
                        'menuurl' => 'editproduct',
                        'accesslevel' => 0,
                        'icon' => 'fa-cog',
                        'template' => 'edit'
                    ]
                ]
            ]
        ]
    ],
    'productcategories' => [
        'menuname' => 'Termékkategóriák',
        'menuurl' => 'productcategories',
        'accesslevel' => 2,
        'icon' => 'fa-box-open',
        'template' => 'dashboard',
        'submenu' => [
            'newproductcategory' => [
                'menuname' => 'Új termékkategória',
                'menuurl' => 'newproductcategory',
                'accesslevel' => 0,
                'icon' => 'fa-plus',
                'template' => 'productcategories/new'
            ],
            'productcategorylist' => [
                'menuname' => 'Termékkategóriák',
                'menuurl' => 'productcategorylist',
                'accesslevel' => 2,
                'icon' => 'fa-list',
                'template' => 'productcategories/productcategory',
                'submenu' => [
                    'view' => [
                        'menuname' => 'Termékkategória megtekintése',
                        'menuurl' => 'view',
                        'accesslevel' => 2,
                        'icon' => 'fa-cog',
                        'template' => 'view'
                    ],
                    'edit' => [
                        'menuname' => 'Termékkategória szerkesztése',
                        'menuurl' => 'edit',
                        'accesslevel' => 0,
                        'icon' => 'fa-cog',
                        'template' => 'edit'
                    ]
                ]
            ]
        ]
    ],
    'pricerange' => [
        'menuname' => 'Ársávok',
        'menuurl' => 'pricerange',
        'accesslevel' => 0,
        'icon' => 'fa-search-dollar',
        'template' => 'dashboard',
        'submenu' => [
            'newpricerange' => [
                'menuname' => 'Új ársáv',
                'menuurl' => 'newpricerange',
                'accesslevel' => 0,
                'icon' => 'fa-plus',
                'template' => 'pricerange/newpricerange'
            ],
            'pricerangelist' => [
                'menuname' => 'Ársávok',
                'menuurl' => 'pricerangelist',
                'accesslevel' => 2,
                'icon' => 'fa-list',
                'template' => 'pricerange/pricerangelist',
                'submenu' => [
                    'edit' => [
                        'menuname' => 'Ársáv szerkesztése',
                        'menuurl' => 'edit',
                        'accesslevel' => 0,
                        'icon' => 'fa-cog',
                        'template' => 'edit'
                    ]
                ]
            ]
        ]
    ],
    'statistic' => [
        'menuname' => 'Statisztika',
        'menuurl' => 'statistic',
        'accesslevel' => 0,
        'icon' => 'fa-chart-line',
        'template' => 'dashboard',
        'submenu' => [
            'static' => [
                'menuname' => 'Statisztika',
                'menuurl' => 'static',
                'accesslevel' => 0,
                'icon' => 'fa-plus',
                'template' => 'statistic/static'
            ]
        ]
    ],
    'users' => [
        'menuname' => 'Felhasználók',
        'menuurl' => 'users',
        'accesslevel' => 2,
        'icon' => 'fa-users',
        'template' => 'dashboard',
        'submenu' => [
            'users' => [
                'menuname' => 'Felhasználólista',
                'menuurl' => 'users',
                'accesslevel' => 0,
                'icon' => 'fa-users',
                'template' => 'users/users',
                'submenu' => [
                    'editrole' => [
                        'menuname' => 'Felhasználó szerkesztése',
                        'menuurl' => 'editrole',
                        'accesslevel' => 0,
                        'icon' => 'fa-cog',
                        'template' => 'other'
                    ]
                ]
            ],
            'newuser' => [
                'menuname' => 'Új hozzáadása',
                'menuurl' => 'newuser',
                'accesslevel' => 0,
                'icon' => 'fa-user-plus',
                'template' => 'users/newuser'
            ],
            'edituser' => [
                'menuname' => 'Beállítások',
                'menuurl' => 'edituser',
                'accesslevel' => 2,
                'icon' => 'fa-cog',
                'template' => 'users/user/me'
            ]
        ]
    ], 'orders' => [
        'menuname' => 'Megrendelések',
        'menuurl' => 'orders',
        'accesslevel' => 2,
        'icon' => 'fa-file-invoice-dollar',
        'template' => 'dashboard',
        'submenu' => [
            'neworder' => [
                'menuname' => 'Új megrendelés',
                'menuurl' => 'neworder',
                'accesslevel' => 2,
                'icon' => 'fa-plus',
                'template' => 'orders/neworder'
            ],
            'order' => [
                'menuname' => 'Megrendelések',
                'menuurl' => 'order',
                'accesslevel' => 2,
                'icon' => 'fa-list',
                'template' => 'orders/orders',
                'submenu' => [
                    'orderview' => [
                        'menuname' => 'Rendelés megtekintése',
                        'menuurl' => 'orderview',
                        'accesslevel' => 2,
                        'icon' => 'fa-cog',
                        'template' => 'view'
                    ],
                    'orderedit' => [
                        'menuname' => 'Rendelés szerkesztése',
                        'menuurl' => 'orderedit',
                        'accesslevel' => 2,
                        'icon' => 'fa-cog',
                        'template' => 'edit'
                    ]
                ]
            ]
        ]
    ], 'ostatus' => [
        'menuname' => 'Megr. állapot',
        'menuurl' => 'ostatus',
        'accesslevel' => 1,
        'icon' => 'fa-dolly-flatbed',
        'template' => 'dashboard',
        'submenu' => [
            'orderstatus0' => [
                'menuname' => 'Megrendelve',
                'menuurl' => 'orderstatus0',
                'accesslevel' => 1,
                'icon' => 'fa-paper-plane',
                'template' => 'orders/status'
            ],
            'orderstatus1' => [
                'menuname' => 'Kiszállítás alatt',
                'menuurl' => 'orderstatus1',
                'accesslevel' => 1,
                'icon' => 'fa-truck',
                'template' => 'orders/status'
            ],
            'orderstatus2' => [
                'menuname' => 'Kiszállítva',
                'menuurl' => 'orderstatus2',
                'accesslevel' => 1,
                'icon' => 'fa-truck-loading',
                'template' => 'orders/status'
            ],
            'orderstatus3' => [
                'menuname' => 'Számlázva',
                'menuurl' => 'orderstatus3',
                'accesslevel' => 1,
                'icon' => 'fa-file-invoice-dollar',
                'template' => 'orders/status'
            ],
            'orderstatus4' => [
                'menuname' => 'Fizetve',
                'menuurl' => 'orderstatus4',
                'accesslevel' => 1,
                'icon' => 'fa-money-bill',
                'template' => 'orders/status'
            ],
            'orderstatus5' => [
                'menuname' => 'Jutalék kifizetve',
                'menuurl' => 'orderstatus5',
                'accesslevel' => 1,
                'icon' => 'fa-check',
                'template' => 'orders/status'
            ]
        ]
    ], 'ostatus2' => [
        'menuname' => 'Megr. állapot ért',
        'menuurl' => 'ostatus2',
        'accesslevel' => 2,
        'icon' => 'fa-dolly-flatbed',
        'template' => 'dashboard',
        'submenu' => [
            '2orderstatus0' => [
                'menuname' => 'Megrendelve',
                'menuurl' => '2orderstatus0',
                'accesslevel' => 2,
                'icon' => 'fa-paper-plane',
                'template' => 'orders/statussale'
            ],
            '2orderstatus1' => [
                'menuname' => 'Kiszállítás alatt',
                'menuurl' => '2orderstatus1',
                'accesslevel' => 2,
                'icon' => 'fa-truck',
                'template' => 'orders/statussale'
            ],
            '2orderstatus2' => [
                'menuname' => 'Kiszállítva',
                'menuurl' => '2orderstatus2',
                'accesslevel' => 2,
                'icon' => 'fa-truck-loading',
                'template' => 'orders/statussale'
            ],
            '2orderstatus3' => [
                'menuname' => 'Számlázva',
                'menuurl' => '2orderstatus3',
                'accesslevel' => 2,
                'icon' => 'fa-file-invoice-dollar',
                'template' => 'orders/statussale'
            ],
            '2orderstatus4' => [
                'menuname' => 'Fizetve',
                'menuurl' => '2orderstatus4',
                'accesslevel' => 2,
                'icon' => 'fa-money-bill',
                'template' => 'orders/statussale'
            ],
            '2orderstatus5' => [
                'menuname' => 'Jutalék kifizetve',
                'menuurl' => '2orderstatus5',
                'accesslevel' => 2,
                'icon' => 'fa-check',
                'template' => 'orders/statussale'
            ]
        ]
    ],
    'logout' => [
        'menuname' => 'Kijelentkezés',
        'menuurl' => 'logout',
        'accesslevel' => 99,
        'icon' => 'fa-cross',
        'template' => 'logout'
    ]
];
