Skip to content

Commit

Permalink
Merge pull request #22 from Laravel-Backpack/fix-link
Browse files Browse the repository at this point in the history
Conditinally display links
  • Loading branch information
pxpm authored Jul 6, 2023
2 parents aeb0c7c + 3b8c6e3 commit 5f12b36
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/views/inc/menu_user_dropdown.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
</span>
</a>
<div class="dropdown-menu {{ backpack_theme_config('html_direction') == 'rtl' ? 'dropdown-menu-left' : 'dropdown-menu-right' }} mr-4 pb-1 pt-1">
<a class="dropdown-item" href="{{ route('backpack.account.info') }}"><i class="la la-user"></i> {{ trans('backpack::base.my_account') }}</a>
<div class="dropdown-divider"></div>
@if(config('backpack.base.setup_my_account_routes'))
<a class="dropdown-item" href="{{ route('backpack.account.info') }}"><i class="la la-user"></i> {{ trans('backpack::base.my_account') }}</a>
<div class="dropdown-divider"></div>
@endif
<a class="dropdown-item" href="{{ backpack_url('logout') }}"><i class="la la-lock"></i> {{ trans('backpack::base.logout') }}</a>
</div>
</li>

0 comments on commit 5f12b36

Please sign in to comment.