View file public/themes/motor/views/menu.blade.php

File size: 922B
  1. @if ($user = getUser())
  2. <i class="fa fa-user-circle fa-lg"></i> <a href="/users/{{ $user->login }}">{{ $user->getName() }}</a> &bull;
  3.  
  4. @if (isAdmin())
  5. <a href="/admin">{{ __('index.panel') }}</a> &bull;
  6. @if (statsSpam() > 0)
  7. <a href="/admin/spam"><span style="color:#ff0000">{{ __('index.complains') }}</span></a> &bull;
  8. @endif
  9.  
  10. @if ($user->newchat < statsNewChat())
  11. <a href="/admin/chats"><span style="color:#ff0000">{{ __('index.chat') }}</span></a> &bull;
  12. @endif
  13. @endif
  14. <a href="/menu">{{ __('index.menu') }}</a> &bull;
  15. <a href="/logout?_token={{ csrf_token() }}" onclick="return logout(this)">{{ __('index.logout') }}</a>
  16. @else
  17. <i class="fa fa-lock fa-lg"></i> <a href="/login{{ returnUrl() }}" rel="nofollow">{{ __('index.login') }}</a> &bull;
  18. <a href="/register" rel="nofollow">{{ __('index.register') }}</a>
  19. @endif