このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
076server/resources/views/pages/site/video/game/all.blade.php

35 行
1.2 KiB
PHP

<div class="row">
<div class="col">
<div class="kero-section">動画一覧</div>
</div>
</div>
<div class="table-responsive">
<table class="table table-hover table-dark">
<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>