mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 01:58:07 +00:00
24 lines
No EOL
882 B
PHP
24 lines
No EOL
882 B
PHP
<nav>
|
|
@php
|
|
$items = [
|
|
'account.dashboard' => ['title' => 'Dashboard', 'icon' => 'dashboard'],
|
|
];
|
|
|
|
if (auth()->user() && auth()->user()->admin) {
|
|
$items['admin.account.index'] = ['title' => 'Accounts', 'icon' => 'people'];
|
|
$items['admin.contacts_lists.index'] = ['title' => 'Contacts Lists', 'icon' => 'account_box'];
|
|
$items['admin.statistics.show'] = ['title' => 'Statistics', 'icon' => 'analytics'];
|
|
|
|
if (auth()->user()->superAdmin) {
|
|
$items['admin.sip_domains.index'] = ['title' => 'SIP Domains', 'icon' => 'dns'];
|
|
}
|
|
}
|
|
@endphp
|
|
|
|
@foreach ($items as $route => $value)
|
|
<a @if (str_starts_with(url()->current(), route($route)))class="current"@endif href="{{ route($route) }}">
|
|
<i class="material-symbols-outlined">{{ $value['icon'] }}</i>
|
|
{{ $value['title'] }}
|
|
</a>
|
|
@endforeach
|
|
</nav> |