mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +00:00
20 lines
No EOL
729 B
PHP
20 lines
No EOL
729 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.day'] = ['title' => 'Statistics', 'icon' => 'analytics'];
|
|
}
|
|
@endphp
|
|
|
|
@foreach ($items as $route => $value)
|
|
<a @if (str_starts_with(url()->current(), route($route)))class="current"@endif href="{{ route($route) }}">
|
|
<i class="material-icons">{{ $value['icon'] }}</i>
|
|
{{ $value['title'] }}
|
|
</a>
|
|
@endforeach
|
|
</nav> |