2019-11-24 14:32:58 +08:00
|
|
|
<li class="nav-item dropdown user-menu">
|
|
|
|
<a href="#" class="nav-link" data-toggle="dropdown">
|
|
|
|
<img src="{{ avatar }}" class="user-image img-circle elevation-2" alt="User Image">
|
|
|
|
<span class="d-none d-md-inline d-sm-block">{{ user.nickname ?? user.email }}</span>
|
2019-09-17 23:10:44 +08:00
|
|
|
</a>
|
|
|
|
|
2019-11-24 14:32:58 +08:00
|
|
|
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
|
|
|
|
<a class="dropdown-item" href="{{ url('user') }}">
|
|
|
|
{{ trans('general.user-center') }}
|
|
|
|
</a>
|
|
|
|
<a class="dropdown-item" href="{{ url('user/profile') }}">
|
|
|
|
{{ trans('general.profile') }}
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-divider"></div>
|
2019-09-17 23:10:44 +08:00
|
|
|
{% if user.admin %}
|
2019-11-24 14:32:58 +08:00
|
|
|
<a class="dropdown-item" href="{{ url('admin') }}">
|
|
|
|
{{ trans('general.admin-panel') }}
|
|
|
|
</a>
|
|
|
|
<a class="dropdown-item" href="{{ url('admin/users') }}">
|
|
|
|
{{ trans('general.user-manage') }}
|
|
|
|
</a>
|
|
|
|
<a class="dropdown-item" href="{{ url('admin/reports') }}">
|
|
|
|
{{ trans('general.report-manage') }}
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-divider"></div>
|
2019-09-17 23:10:44 +08:00
|
|
|
{% endif %}
|
2019-11-24 14:32:58 +08:00
|
|
|
<a class="dropdown-item" href="#" id="logout-button">
|
|
|
|
{{ trans('general.logout') }}
|
|
|
|
</a>
|
|
|
|
</div>
|
2019-09-17 23:10:44 +08:00
|
|
|
</li>
|