|
15 | 15 | 'fr' => 'Français' |
16 | 16 | ], |
17 | 17 |
|
| 18 | + /* |
| 19 | + |-------------------------------------------------------------------------- |
| 20 | + | Main menu configuration |
| 21 | + |-------------------------------------------------------------------------- |
| 22 | + | |
| 23 | + | This value is the definition of the application main menu |
| 24 | + | Used in the 'App\View\Components\MainMenu' blade component |
| 25 | + | |
| 26 | + | Parameters: |
| 27 | + | ----------- |
| 28 | + | - 'title' The translatable title of the menu |
| 29 | + | |
| 30 | + | - 'route' The menu route name |
| 31 | + | |
| 32 | + | - 'icon' The Fontawesome icon class |
| 33 | + | (icons list: http://fontawesome.io/icons/) |
| 34 | + | |
| 35 | + | - 'always_shown' If equals to "true" the menu is always shown without |
| 36 | + | checking permissions, if "false" the 'permissions' parameter |
| 37 | + | is used to show or not the menu item |
| 38 | + | |
| 39 | + | - 'show_notification_indicator' If equals to "true" the menu item will |
| 40 | + | show an indicator if there is notifications not read |
| 41 | + | |
| 42 | + | - 'permissions' The permissions used to show or not the menu item |
| 43 | + | |
| 44 | + | - (Optional) 'children' The sub menu items |
| 45 | + | - 'children.title' The translatable title of the sub menu |
| 46 | + | |
| 47 | + | - 'children.route' The sub menu route name |
| 48 | + | |
| 49 | + | - 'children.icon' The Fontawesome icon class |
| 50 | + | (icons list: http://fontawesome.io/icons/) |
| 51 | + | |
| 52 | + | - 'children.always_shown' If equals to "true" the menu is always |
| 53 | + | shown without checking permissions, if "false" |
| 54 | + | the 'permissions' parameter is used to show or not |
| 55 | + | the menu item |
| 56 | + | |
| 57 | + | - 'children.permissions' The permissions used to show or not |
| 58 | + | the menu item |
| 59 | + | |
| 60 | + */ |
| 61 | + 'main_menu' => [ |
| 62 | + [ |
| 63 | + 'title' => 'Overview', |
| 64 | + 'route' => 'home', |
| 65 | + 'icon' => 'fa-table-columns', |
| 66 | + 'always_shown' => true, |
| 67 | + 'show_notification_indicator' => false, |
| 68 | + 'permissions' => [''] |
| 69 | + ], |
| 70 | + [ |
| 71 | + 'title' => 'Analytics', |
| 72 | + 'route' => 'analytics', |
| 73 | + 'icon' => 'fa-chart-bar', |
| 74 | + 'always_shown' => false, |
| 75 | + 'show_notification_indicator' => false, |
| 76 | + 'permissions' => ['Can view Analytics page'] |
| 77 | + ], |
| 78 | + [ |
| 79 | + 'title' => 'Tickets', |
| 80 | + 'route' => 'tickets', |
| 81 | + 'icon' => 'fa-ticket', |
| 82 | + 'always_shown' => false, |
| 83 | + 'show_notification_indicator' => false, |
| 84 | + 'permissions' => ['Can view Tickets page'] |
| 85 | + ], |
| 86 | + [ |
| 87 | + 'title' => 'Kanban Board', |
| 88 | + 'route' => 'kanban', |
| 89 | + 'icon' => 'fa-clipboard-check', |
| 90 | + 'always_shown' => false, |
| 91 | + 'show_notification_indicator' => false, |
| 92 | + 'permissions' => ['Can view Kanban page'] |
| 93 | + ], |
| 94 | + [ |
| 95 | + 'title' => 'Administration', |
| 96 | + 'route' => 'administration', |
| 97 | + 'icon' => 'fa-cogs', |
| 98 | + 'always_shown' => false, |
| 99 | + 'show_notification_indicator' => false, |
| 100 | + 'permissions' => [ |
| 101 | + 'View all users', 'View company users', |
| 102 | + 'View all companies', 'View own companies', |
| 103 | + 'Manage ticket statuses', |
| 104 | + 'Manage ticket types', |
| 105 | + 'Manage ticket priorities', |
| 106 | + 'View activity log' |
| 107 | + ], |
| 108 | + 'children' => [ |
| 109 | + [ |
| 110 | + 'title' => 'Manage companies', |
| 111 | + 'route' => 'administration.companies', |
| 112 | + 'icon' => 'fa-building', |
| 113 | + 'always_shown' => false, |
| 114 | + 'permissions' => ['View all companies', 'View own companies'] |
| 115 | + ], |
| 116 | + [ |
| 117 | + 'title' => 'Manage users', |
| 118 | + 'route' => 'administration.users', |
| 119 | + 'icon' => 'fa-users', |
| 120 | + 'always_shown' => false, |
| 121 | + 'permissions' => ['View all users', 'View company users'] |
| 122 | + ], |
| 123 | + [ |
| 124 | + 'title' => 'Manage user roles', |
| 125 | + 'route' => 'administration.roles', |
| 126 | + 'icon' => 'fa-user-lock', |
| 127 | + 'always_shown' => false, |
| 128 | + 'permissions' => ['Manage user roles'] |
| 129 | + ], |
| 130 | + [ |
| 131 | + 'title' => 'Manage statuses', |
| 132 | + 'route' => 'administration.ticket-statuses', |
| 133 | + 'icon' => 'fa-square-check', |
| 134 | + 'always_shown' => false, |
| 135 | + 'permissions' => ['Manage ticket statuses'] |
| 136 | + ], |
| 137 | + [ |
| 138 | + 'title' => 'Manage types', |
| 139 | + 'route' => 'administration.ticket-types', |
| 140 | + 'icon' => 'fa-copy', |
| 141 | + 'always_shown' => false, |
| 142 | + 'permissions' => ['Manage ticket types'] |
| 143 | + ], |
| 144 | + [ |
| 145 | + 'title' => 'Manage priorities', |
| 146 | + 'route' => 'administration.ticket-priorities', |
| 147 | + 'icon' => 'fa-arrow-up', |
| 148 | + 'always_shown' => false, |
| 149 | + 'permissions' => ['Manage ticket priorities'] |
| 150 | + ], |
| 151 | + [ |
| 152 | + 'title' => 'Activity logs', |
| 153 | + 'route' => 'administration.activity-logs', |
| 154 | + 'icon' => 'fa-bell', |
| 155 | + 'always_shown' => false, |
| 156 | + 'permissions' => ['View activity log'] |
| 157 | + ] |
| 158 | + ] |
| 159 | + ], |
| 160 | + [ |
| 161 | + 'title' => 'Notifications', |
| 162 | + 'route' => 'notifications', |
| 163 | + 'icon' => 'fa-bell', |
| 164 | + 'always_shown' => true, |
| 165 | + 'show_notification_indicator' => true, |
| 166 | + 'permissions' => [''] |
| 167 | + ], |
| 168 | + ], |
| 169 | + |
18 | 170 | ]; |
0 commit comments