添加点播信息建设内容

This commit is contained in:
2022-07-29 13:36:40 +08:00
parent 4f31bd50c3
commit 27ac801b33
8 changed files with 204 additions and 20 deletions

View File

@ -16,21 +16,22 @@
<table class="table-auto border-collapse w-full lg:border lg:border-black">
<thead>
<tr class="border border-black sticky bg-white lg:static top-0 left-0 right-0">
<td>节目名称</td>
<td>点播及追加</td>
<td>节目开始</td>
<td>节目结束</td>
<th class="border border-black">节目名称</th>
<th class="border border-black">点播及追加</th>
<th class="border border-black">节目开始</th>
<th class="border border-black">节目结束</th>
</tr>
</thead>
<tbody>
@foreach($programs as $program)
<tr>
<td>
<td class="border">
<span title="节目">{{$program->name}}</span>
<span title="难度">{{$program->difficulty}}</span>
<span title="要求">{{$program->desc}}</span>
<a href="{{route("program.construct.edit", ["program"=>$program->id])}}" class="block">{{$program->created_at}}</a>
</td>
<td>
<td class="border">
@foreach($program->appends as $append)
@if($append->is_original)
<div>
@ -58,7 +59,7 @@
@endif
</div>
@else
<div>
<div class="my-2">
@switch($append->platform_id)
@case(1)
<img class="w-4 h-4 inline-block" src="https://cdn.jerryyan.net/luboimg/bilibili.ico" alt="B站">
@ -84,8 +85,11 @@
</div>
@endif
@endforeach
@if(sizeof($program->appends) === 0)
<a href="{{route('program.construct.append.list', ['program'=>$program->id])}}">去建设</a>
@endif
</td>
<td>
<td class="border">
@foreach($program->video_pivots as $video_pivot)
<a
target="_blank"
@ -96,11 +100,12 @@
<img width="300" src="{{$video_pivot->start_image}}" alt="开始时的画面">
@else
节目开始位置
<a href="{{route('program.construct.video.edit', ['program_video'=>$video_pivot->id])}}">去建设</a>
@endif
</a>
@endforeach
</td>
<td>
<td class="border">
@foreach($program->video_pivots as $video_pivot)
@if($video_pivot->stop_part)
<a
@ -115,11 +120,7 @@
@endif
</a>
@else
@if($video_pivot->stop_image)
<img width="300" src="{{$video_pivot->stop_image}}" alt="结束时的画面">
@else
<div>暂无</div>
@endif
<a href="{{route('program.construct.video.edit', ['program_video'=>$video_pivot->id])}}">去建设</a>
@endif
@endforeach
</td>