建设相关的路由,及大部分提交的验证,及视频对应的真·节目单

This commit is contained in:
2022-08-01 13:45:36 +08:00
parent fb78d7facb
commit 9ed3db42f2
18 changed files with 452 additions and 16 deletions

View File

@ -25,9 +25,15 @@
是否结束维护
<input class="form-checkbox" type="checkbox" name="status" value="1" @if($program->status == 1) checked @endif>
</label>
@if($errors->any())
@foreach ($errors->all() as $error)
<div class="bg-red-600 text-white">错误:{{ $error }}</div>
@endforeach
@endif
<div class="block my-2 text-center">
<input class="px-6 py-2 inline-block rounded-full bg-cyan-600 text-white" type="submit">
</div>
@if($program->id)
<div class="block my-2">
<a href="{{route("program.construct.video.list", ["program"=>$program->id])}}"
class="block px-6 py-2 inline-block rounded-full bg-cyan-600 text-white">
@ -38,11 +44,14 @@
关联点播老板列表
</a>
</div>
@endif
</form>
@if($program->id)
<div class="w-full lg:w-1/2 lg:ml-6 flex justify-between px-4">
<a class="block px-6 py-2 inline-block rounded-full bg-cyan-600 text-white" href="{{route("program.construct.edit", ["program"=>$program->id - 1])}}">上一个</a>
<a class="block px-6 py-2 inline-block rounded-full bg-cyan-600 text-white" href="{{route("program.construct.edit", ["program"=>$program->id + 1])}}">下一个</a>
</div>
@endif
@include("common.footer")
</body>
</html>