@section('auth-widget-logged-in-items')
  • {!! link_to('users/'.user()->id.'/'.user()->slug, trans('app.profile')) !!}
  • {!! link_to('users/'.user()->id.'/edit', trans('app.edit_profile')) !!}
  • @if (user()->countMessages() > 0) {!! link_to('messages/inbox', user()->countMessages().' '.trans_object('messages')) !!} @else {!! link_to('messages/inbox', trans_object('messages')) !!} @endif
  • {!! link_to('friends/'.user()->id, trans_object('friends')) !!}
  • @if (user()->hasAccess('backend', PERM_READ))
  • {!! link_to('admin', trans('auth::backend')) !!}
  • @endif
  • {!! link_to('auth/logout', trans('app.logout')) !!}
  • @show