mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-04-17 19:58:27 +00:00
29 lines
No EOL
907 B
PHP
29 lines
No EOL
907 B
PHP
<nav>
|
|
@php
|
|
$items = [];
|
|
|
|
if (auth()->user() && auth()->user()->admin) {
|
|
if (auth()->user()->superAdmin) {
|
|
$items['admin.spaces.index'] = ['title' => __('Spaces'), 'icon' => 'globe-hemisphere-west'];
|
|
} elseif (auth()->user()->admin) {
|
|
$items['admin.spaces.me'] = ['title' => __('My Space'), 'icon' => 'globe-hemisphere-west'];
|
|
}
|
|
|
|
$items['admin.account.index'] = ['title' => __('Users'), 'icon' => 'users'];
|
|
$items['admin.statistics.show'] = ['title' => __('Statistics'), 'icon' => 'chart-donut'];
|
|
$items['admin.api_keys.index'] = ['title' => __('Settings'), 'icon' => 'gear'];
|
|
}
|
|
@endphp
|
|
|
|
@include('parts.sidebar_items', ['items' => $items])
|
|
|
|
<hr />
|
|
|
|
@php
|
|
$items = [];
|
|
$items['account.telephony'] = ['title' => __('Telephony'), 'icon' => 'phone'];
|
|
@endphp
|
|
|
|
@include('parts.sidebar_items', ['items' => $items])
|
|
|
|
</nav> |