@if ($current != '' && $slug != '' && $slug == $current && $url[3] != 'video' && ($user->perm['blg_editpost'] || $user->perm['blg_editpage'] || $user->perm['blg_delpost'] || $user->perm['blg_delpage']))
  <div class="row" style="margin-bottom: 15px;">
    @if ($current != '' && $slug != '' && $slug == $current && ($user->perm['blg_editpost'] || $user->perm['blg_editpage']))
      <div class="col"><a href="/content/{{ $current }}/edit" class="btn btn-block btn-warning">投稿の編集</a></div>
    @endif
    @if ($current != '' && $slug != '' && $slug == $current && ($user->perm['blg_delpost'] || $user->perm['blg_delpage']))
      <div class="col">
        <form action="/content/del" method="post">
          @csrf
          <input type="hidden" name="slug" value="{{ $current }}" />
          <input type="submit" class="btn btn-block btn-danger" value="投稿の削除" />
        </form>
      </div>
    @endif
  </div>
@endif
