flexisip-account-manager/flexiapi/resources/views/parts/sidebar.blade.php
Timothée Jaussoin 594a3d65eb Fix FLEXIAPI-461 Detect the platform family and propose a button adapted for it
Fix FLEXIAPI-463 Add wizard link in all the emails where the account is injected
Update the dependencies
2026-03-19 16:02:10 +01:00

29 lines
No EOL
957 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])
@if (auth()->user())
<hr />
@php
$items = [];
$items['account.telephony'] = ['title' => __('Telephony'), 'icon' => 'phone'];
@endphp
@include('parts.sidebar_items', ['items' => $items])
@endif
</nav>