<div class="row">
  <div class="col">
    <div class="kero-section">動画一覧</div>
  </div>
</div>
<div class="tres">
      <table class="table">
    <thead>
      <tr>
        <th scope="col" width="70%">ゲーム名</th>
        @if (isset(getUser()->perm) && (getUser()->perm['blg_editpost'] || getUser()->perm['blg_delpost']))
          <th scope="col"></th>
          <th scope="col"></th>
        @endif
      </tr>
    </thead>
    @foreach ($res as $k => $r)
      <tr>
        <td scope="row"><a href="/video/{{ $r->slug }}">{{ $r->name }}</a></td>
        @if (isset(getUser()->perm) && (getUser()->perm['blg_editpost'] || getUser()->perm['blg_delpost']))
          <td scope="row"><a href="/video/game/{{$r->slug}}/edit" class="btn btn-block btn-warning">編集</a></td>
          <td scope="row">
            <div class="col">
              <form action="/game/del" method="post">
                @csrf
                <input type="hidden" name="slug" value="{{ $r->slug }}" />
                <input type="submit" class="btn btn-block btn-danger" value="削除" />
              </form>
            </div>
          </td>
        @endif
      </tr>
    @endforeach
  </table>
</div>