<?php

$menus = [
    'index' => [
        'menuname' => 'Vezérlőpult',
        'menuurl' => 'index',
        'accesslevel' => 0,
        'icon' => 'fa-tachometer-alt',
        'template' => 'dashboard'
    ],
    'automates' => [
        'menuname' => 'Automaták',
        'menuurl' => 'automates',
        'accesslevel' => 3,
        'icon' => 'fa-table',
        'template' => 'dashboard',
        'submenu' => [
            'newautomata' => [
                'menuname' => 'Új automata',
                'menuurl' => 'newautomata',
                'accesslevel' => 0,
                'icon' => 'fa-plus',
                'template' => 'automate/list/add'
            ],
            'automateslist' => [
                'menuname' => 'Gép lista',
                'menuurl' => 'automateslist',
                'accesslevel' => 3,
                'icon' => 'fa-list',
                'template' => 'automate/list',
                'submenu' => [
                    'view' => [
                        'menuname' => 'ECON Gép megtekintése',
                        'menuurl' => 'view',
                        'accesslevel' => 3,
                        'template' => 'view',
                    ], 'edit' => [
                        'menuname' => 'ECON Gép szerkesztése',
                        'menuurl' => 'edit',
                        'accesslevel' => 0,
                        'template' => 'edit',
                    ], 'addservice' => [
                        'menuname' => 'ECON Szervíz',
                        'menuurl' => 'addservice',
                        'accesslevel' => 0,
                        'template' => 'addservice',
                    ],'viewservices'=>[
                        'menuname' => 'ECON Szervíz történet',
                        'menuurl' => 'viewservices',
                        'accesslevel' => 0,
                        'template' => 'viewservices',
                    ],'viewservice'=>[
                        'menuname' => 'ECON Szervíz log',
                        'menuurl' => 'viewservice',
                        'accesslevel' => 0,
                        'template' => 'viewservice',
                    ],
                ]
            ],
            'globalsettings' => [
                'menuname' => 'Alapértelmezett beállítások',
                'menuurl' => 'globalsettings',
                'accesslevel' => 0,
                'icon' => 'fa-wrench',
                'template' => 'dashboard'
            ]
        ]
    ],
    'statistics' => [
        'menuname' => 'Statiszika',
        'menuurl' => 'statistics',
        'accesslevel' => 0,
        'icon' => 'fa-chart-line',
        'template' => 'statistics',
        'submenu' => [
            'revenue' => [
                'menuname' => 'Árbevétel',
                'menuurl' => 'revenue',
                'accesslevel' => 0,
                'icon' => 'fa-dollar-sign',
                'template' => 'statistics/revenue'
            ],
            'regional' => [
                'menuname' => 'Regionális',
                'menuurl' => 'regional',
                'accesslevel' => 0,
                'icon' => 'fa-map-marker-alt',
                'template' => 'dashboard',
            ],
            'reduce' => [
                'menuname' => 'Fogyás',
                'menuurl' => 'reduce',
                'accesslevel' => 0,
                'icon' => 'fa-temperature-low',
                'template' => 'statistics/reduce',
            ]
        ]
    ],
    'partners' => [
        'menuname' => 'Partnerek',
        'menuurl' => 'partners',
        'accesslevel' => 0,
        'icon' => 'fa-handshake',
        'template' => 'dashboard',
        'submenu' => [
            'newpartner' => [
                'menuname' => 'Új partner',
                'menuurl' => 'newpartner',
                'accesslevel' => 0,
                'icon' => 'fa-user-plus',
                'template' => 'partners/new'
            ],
            'partnerlist' => [
                'menuname' => 'Partnerek',
                'menuurl' => 'partnerlist',
                'accesslevel' => 0,
                'icon' => 'fa-list',
                'template' => 'partners/list',
            ]
        ]
    ],
    'service' => [
        'menuname' => 'Szervíz',
        'menuurl' => 'service',
        'accesslevel' => 0,
        'icon' => 'fa-cog',
        'template' => 'service/services',
        'submenu' => [
            'newservice' => [
                'menuname' => 'Szervíz hozzáadása',
                'menuurl' => 'newservice',
                'accesslevel' => 0,
                'icon' => 'fa-plus',
                'template' => 'service/newservice'
            ],
            'editservice' => [
                'menuname' => 'Szervíz szerkesztése',
                'menuurl' => 'editservice',
                'accesslevel' => 0,
                'icon' => 'fa-pen',
                'template' => 'service/services',
                'submenu' => [
                    'updateservice' => [
                        'menuname' => 'Szervíz módosítása',
                        'menuurl' => 'updateservice',
                        'accesslevel' => 0,
                        'template' => 'updateservice'
                    ]
                ]
            ]
        ]
    ],
    'users' => [
        'menuname' => 'Felhasználók',
        'menuurl' => 'users',
        'accesslevel' => 0,
        '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' => 0,
                'icon' => 'fa-cog',
                'template' => 'users/user/me'
            ]
        ]
    ],
    'logout' => [
        'menuname' => 'Kifejelentkezés',
        'menuurl' => 'logout',
        'accesslevel' => 99,
        'icon' => 'fa-cross',
        'template' => 'logout'
    ]
];
