@if ($user)
  <div style="margin-top: 32px;">
    <div class="nav flex-column nav-pills sidemenu">
      <div class="nav-link barm">ユーザー</div>
      <a href="/profile/{{ $user->id }}" class="nav-link {{ ($_SERVER['REQUEST_URI'] == '/profile/'.$user->id ? 'bara' : 'bar') }}">{{ __('site.profilenohyoji') }}</a>
      <a href="/profile/{{ $user->id }}/edit" class="nav-link {{ ($_SERVER['REQUEST_URI'] == '/profile/'.$user->id.'/edit' ? 'bara' : 'bar') }}">{{ __('site.profilenohensyu') }}</a>
      @if ($user->perm['blg_addpost'] || $user->perm['blg_addpage'])
        @if ($user->perm['blg_addpost'] || $user->perm['blg_addpage']) <a href="/content/add" class="nav-link {{ ($_SERVER['REQUEST_URI'] == '/content/add' ? 'bara' : 'bar') }}">{{ __('site.tokonotuika') }}</a> @endif
        @if ($user->perm['blg_addpost']) <a href="/video/add" class="nav-link {{ ($_SERVER['REQUEST_URI'] == '/video/add' ? 'bara' : 'bar') }}">{{ __('site.doganotuika') }}</a> @endif
      @endif
      @if ($user->perm['blg_addpost'] || $user->perm['blg_addpage'] || $user->perm['blg_editpost'] || $user->perm['blg_editpage'])
        <a href="/commentlist" class="nav-link {{ ($_SERVER['REQUEST_URI'] == '/commentlist' ? 'bara' : 'bar') }}">{{ __('site.comentitiran') }}</a>
        <a href="/memberlist" class="nav-link {{ ($_SERVER['REQUEST_URI'] == '/memberlist' ? 'bara' : 'bar') }}">{{ __('site.useritiran') }}</a>
      @endif
      <a href="/logout" class="nav-link {{ ($_SERVER['REQUEST_URI'] == '/logout' ? 'bara' : 'bar') }}">{{ __('site.signout') }}</a>
    </div>
  </div>
@endif