index.blade.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. @extends('admin.public.base')
  2. @section('body_class')
  3. style="margin: 0 auto;width: 96%;padding: 30px 0px;"
  4. @endsection
  5. @section('content')
  6. <div class="page-header">
  7. @if( check_auth('admin/video_course_service/add') )
  8. <a href="{{url('admin/video_course_service/add')}}" class="btn btn-primary">新增</a>
  9. @endif
  10. </div>
  11. <form action="" method="get" class="form-horizontal form-line">
  12. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
  13. <input type="text" class="form-control" name="name" value="{{request('name','')}}" placeholder="请输入客服名称查询" />
  14. </div>
  15. <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
  16. <a href="{{url('admin/video_course_service/index')}}" class="btn btn-sm btn-default" >重置</a>
  17. @csrf
  18. </form>
  19. <div class="row">
  20. <div class="col-xs-12">
  21. <div class="table-responsive">
  22. <table class="table table-striped table-bordered table-hover">
  23. <thead>
  24. <tr>
  25. <th>ID</th>
  26. <th>客服名称</th>
  27. <th>客服状态</th>
  28. <th>修改时间</th>
  29. <th>操作</th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. @foreach ($list as $a)
  34. <tr>
  35. <td> {{$a['id']}}</td>
  36. <td> {{$a['name']}}</td>
  37. <td> @if ($a['status'] == 0) 启用 @endif @if ($a['status'] == 1) 停用 @endif</td>
  38. <td> {{date('Y/m/d H:i',$a['update_time'])}}</td>
  39. <td>
  40. @if( check_auth('admin/video_course_service/edit') )
  41. <a class="btn btn-sm btn-warning" href="{{url('admin/video_course_service/edit?'.http_build_query(['id'=>$a['id']]))}}" title="查看">
  42. 修改
  43. </a>
  44. @endif
  45. @if( check_auth('admin/video_course_service/set_status') )
  46. @if ( $a['status'] )
  47. <a class="delete btn btn-sm btn-success" data-url="{{url('admin/video_course_service/set_status?'.http_build_query(['id'=>$a['id'],'status'=>'0']))}}">
  48. 启用
  49. </a>
  50. @else
  51. <a class="delete btn btn-sm btn-danger" data-url="{{url('admin/video_course_service/set_status?'.http_build_query(['id'=>$a['id'],'status'=>'1']))}}">
  52. 停用
  53. </a>
  54. @endif
  55. @endif
  56. </td>
  57. </tr>
  58. @endforeach
  59. <tr>
  60. <td colspan="20" class="page">{{$list->render()}}</td>
  61. </tr>
  62. <tr>
  63. <td colspan="20">总计 {{$list->total()}} 个客服</td>
  64. </tr>
  65. </tbody>
  66. </table>
  67. </div>
  68. </div>
  69. </div>
  70. @endsection