index.blade.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. <a href="{{url('admin/score_clockin/add?'.http_build_query(['active_id'=>request('active_id',0)]))}}" class="btn btn-primary">新增</a>
  8. </div>
  9. <form action="" method="get" class="form-horizontal form-line">
  10. </form>
  11. <div class="row">
  12. <div class="col-xs-12">
  13. <div class="table-responsive">
  14. <table class="table table-striped table-bordered table-hover">
  15. <thead>
  16. <tr>
  17. <th>ID</th>
  18. <th>打卡天数</th>
  19. <th>奖励积分</th>
  20. <th>奖励券</th>
  21. <th>修改时间</th>
  22. <th>操作</th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. @foreach ($list as $a)
  27. <tr>
  28. <td>{{$a['id']}}</td>
  29. <td>{{$a['what_day']}}</td>
  30. <td>{{$a['reward']}}</td>
  31. <td>{{$a['coupon_name'] ? $a['coupon_name'].'('.$a['coupon_code'].')':''}}</td>
  32. <td>{{date('Y-m-d H:i:s',$a['update_time'])}}</td>
  33. <td>
  34. @if(check_auth('admin/score_clockin/edit'))
  35. <a class="btn btn-sm btn-warning" href="{{url('admin/score_clockin/edit?'.http_build_query(['id'=>$a['id']]))}}">
  36. 编辑
  37. </a>
  38. @endif
  39. <!-- @if ($a['status'])
  40. <a class="delete btn btn-sm btn-success" data-url="{{url('admin/score_clockin/set_status?'.http_build_query(['id'=>$a['id'],'status'=>'0']))}}">
  41. 启用
  42. </a>
  43. @else
  44. <a class="delete btn btn-sm btn-danger" data-url="{{url('admin/score_clockin/set_status?'.http_build_query(['id'=>$a['id'],'status'=>'1']))}}">
  45. 停用
  46. </a>
  47. @endif -->
  48. </td>
  49. </tr>
  50. @endforeach
  51. <tr>
  52. <td colspan="20" class="page">{{$list->render()}}</td>
  53. </tr>
  54. <tr>
  55. <td colspan="20">总计 {{$list->total()}} 个打卡</td>
  56. </tr>
  57. </tbody>
  58. </table>
  59. </div>
  60. </div>
  61. </div>
  62. @endsection